MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / is_known_command

Function is_known_command

packages/server/src/main.rs:2603–2653  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

2601}
2602
2603fn is_known_command(value: &str) -> bool {
2604 if value == removed_service_process_name() {
2605 return true;
2606 }
2607 matches!(
2608 value,
2609 "ui" | "pair"
2610 | "maestro"
2611 | "service"
2612 | "core-simulator"
2613 | "simctl-service"
2614 | "list"
2615 | "use"
2616 | "boot"
2617 | "shutdown"
2618 | "open-url"
2619 | "launch"
2620 | "toggle-appearance"
2621 | "erase"
2622 | "install"
2623 | "uninstall"
2624 | "pasteboard"
2625 | "logs"
2626 | "processes"
2627 | "stats"
2628 | "sample"
2629 | "screenshot"
2630 | "describe"
2631 | "touch"
2632 | "tap"
2633 | "back"
2634 | "swipe"
2635 | "gesture"
2636 | "pinch"
2637 | "rotate-gesture"
2638 | "key"
2639 | "key-sequence"
2640 | "key-combo"
2641 | "type"
2642 | "button"
2643 | "crown"
2644 | "batch"
2645 | "dismiss-keyboard"
2646 | "home"
2647 | "app-switcher"
2648 | "rotate-left"
2649 | "rotate-right"
2650 | "chrome-profile"
2651 | "help"
2652 )
2653}
2654
2655fn removed_service_process_name() -> String {
2656 ['d', 'a', 'e', 'm', 'o', 'n'].into_iter().collect()

Callers 1

Calls 1

Tested by

no test coverage detected