()
| 57 | } |
| 58 | |
| 59 | fn get_command() -> Command { |
| 60 | Command::new("spacetime") |
| 61 | .version(version::CLI_VERSION) |
| 62 | .long_version(version::long_version()) |
| 63 | .arg_required_else_help(true) |
| 64 | .subcommand_required(true) |
| 65 | .arg( |
| 66 | Arg::new("root_dir") |
| 67 | .long("root-dir") |
| 68 | .help("The root directory to store all spacetime files in.") |
| 69 | .value_parser(clap::value_parser!(RootDir)), |
| 70 | ) |
| 71 | .arg( |
| 72 | Arg::new("config_path") |
| 73 | .long("config-path") |
| 74 | .help("The path to the cli.toml config file") |
| 75 | .value_parser(clap::value_parser!(CliTomlPath)), |
| 76 | ) |
| 77 | .subcommands(get_subcommands()) |
| 78 | .help_expected(true) |
| 79 | .help_template( |
| 80 | r#" |
| 81 | ┌───────────────────────────────────────────────────────────────────────────────────────────────────────┐ |
| 82 | │ │ |
| 83 | │ │ |
| 84 | │ ⢀⠔⠁ │ |
| 85 | │ ⣠⡞⠁ │ |
| 86 | │ ⣀⣀⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣀⣀⣀⣀⣀⣀⣀⣤⣤⡴⠒ ⢀⣠⡾⠋ │ |
| 87 | │ ⢀⣤⣶⣾88888888888888888888⠿⠋ ⢀⣴8⡟⠁ │ |
| 88 | │ ⢀⣤⣾88888⡿⠿⠛⠛⠛⠛⠛⠛⠛⠛⠻⠿88888⠟⠁ ⣠⣾88⡟ │ |
| 89 | │ ⢀⣴88888⠟⠋⠁ ⣀⣤⠤⠶⠶⠶⠶⠶⠤⣤⣀ ⠉⠉⠉ ⢀⣴⣾888⡟ │ |
| 90 | │ ⣠88888⠋ ⣠⠶⠋⠉ ⠉⠙⠶⣄ ⢀⣴888888⠃ │ |
| 91 | │ ⣰8888⡟⠁ ⣰⠟⠁ ⠈⠻⣆ ⠈⢿888888 │ |
| 92 | │ ⢠8888⡟ ⡼⠁ ⠈⢧ ⠈⢿8888⡿ │ |
| 93 | │ ⣼8888⠁ ⢸⠇ ⠸⡇ ⠘8888⣷ │ |
| 94 | │ 88888 8 8 88888 │ |
| 95 | │ ⢿8888⡄ ⢸⡆ ⢰⡇ ⢀8888⡟ │ |
| 96 | │ ⣾8888⣷⡀ ⢳⡀ ⢀⡞ ⣼8888⠃ │ |
| 97 | │ 888888⣷⡀ ⠹⣦⡀ ⢀⣴⠏ ⢀⣼8888⠏ │ |
| 98 | │ ⢠888888⠟⠁ ⠙⠶⣄⣀ ⣀⣠⠶⠋ ⣠88888⠋ │ |
| 99 | │ ⣼888⡿⠟⠁ ⣀⣀⣀ ⠉⠛⠒⠶⠶⠶⠶⠶⠒⠛⠉ ⢀⣠⣴88888⠟⠁ │ |
| 100 | │ ⣼88⡿⠋ ⢀⣴88888⣶⣦⣤⣤⣤⣤⣤⣤⣤⣤⣶⣾88888⡿⠛⠁ │ |
| 101 | │ ⢀⣼8⠟⠁ ⣠⣶88888888888888888888⡿⠿⠛⠁ │ |
| 102 | │ ⣠⡾⠋⠁ ⠤⠞⠛⠛⠉⠉⠉⠉⠉⠉⠉⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠉⠉ │ |
| 103 | │ ⢀⡼⠋ │ |
| 104 | │ ⢀⠔⠁ │ |
| 105 | │ │ |
| 106 | │ │ |
| 107 | │ .d8888b. 888 d8b 8888888b. 888888b. │ |
| 108 | │ d88P Y88b 888 Y8P 888 "Y88b 888 "88b │ |
| 109 | │ Y88b. 888 888 888 888 .88P │ |
| 110 | │ "Y888b. 88888b. 8888b. .d8888b .d88b. 888888 888 88888b.d88b. .d88b. 888 888 8888888K. │ |
| 111 | │ "Y88b. 888 "88b "88b d88P" d8P Y8b 888 888 888 "888 "88b d8P Y8b 888 888 888 "Y88b │ |
| 112 | │ "888 888 888 .d888888 888 88888888 888 888 888 888 888 88888888 888 888 888 888 │ |
| 113 | │ Y88b d88P 888 d88P 888 888 Y88b. Y8b. Y88b. 888 888 888 888 Y8b. 888 .d88P 888 d88P │ |
| 114 | │ "Y8888P" 88888P" "Y888888 "Y8888P "Y8888 "Y888 888 888 888 888 "Y8888 8888888P" 8888888P" │ |
| 115 | │ 888 │ |
| 116 | │ 888 │ |
no test coverage detected
searching dependent graphs…