You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[command(name = "change", next_help_heading = "Change a Submodule's Settings", about = "Change the configuration of an existing submodule. Any field you provide will overwrite an existing value (unless both are defaults). If you change the path, it will nuke-it-from-orbit (delete it and re-clone it).")]
114
+
#[command(name = "change",hide = true,next_help_heading = "Change a Submodule's Settings", about = "Change the configuration of an existing submodule. Any field you provide will overwrite an existing value (unless both are defaults). If you change the path, it will nuke-it-from-orbit (delete it and re-clone it).")]
114
115
Change{
115
116
#[arg(required = true, value_parser = clap::value_parser!(String), value_hint = clap::ValueHint::CommandName, help = "The name of the submodule to change. Must match an existing submodule.", long_help = "The name of the submodule to change. Must match an existing submodule in your submod.toml. Because we use this value to lookup your config, you cannot change the name from the CLI. You must manually change it in your submod.toml. All other options can be changed here.")]
116
117
name:String,
@@ -146,7 +147,7 @@ pub enum Commands {
146
147
active:bool,
147
148
},
148
149
// TODO: Implement this command
149
-
#[command(name = "change-global", visible_aliases = ["cg","chgl","global"], next_help_heading = "Change Global Settings", about = "Add or change the global settings for submodules, affecting all submodules in the current repository. Any individual submodule settings will override these global settings.")]
150
+
#[command(name = "change-global",hide = true,visible_aliases = ["cg","chgl","global"], next_help_heading = "Change Global Settings", about = "Add or change the global settings for submodules, affecting all submodules in the current repository. Any individual submodule settings will override these global settings.")]
150
151
ChangeGlobal{
151
152
152
153
#[arg(short = 'i', long = "ignore", help = "Sets the default ignore behavior for all submodules in this repository. This will override any individual submodule settings.")]
@@ -163,7 +164,7 @@ pub enum Commands {
163
164
Check,
164
165
165
166
// TODO: Implement this command
166
-
#[command(name = "list", visible_aliases = ["ls","l"], next_help_heading = "List Submodules", about = "Lists all submodules, optionally recursively.")]
167
+
#[command(name = "list",hide = true,visible_aliases = ["ls","l"], next_help_heading = "List Submodules", about = "Lists all submodules, optionally recursively.")]
167
168
List{
168
169
/// Recursively list all submodules for the current repository.
169
170
#[arg(short = 'r', long = "recursive", default_value = "false", action = clap::ArgAction::SetTrue, default_missing_value = "true", help = "If given, lists all submodules recursively (like, the submodules of the submodules).")]
@@ -174,11 +175,11 @@ pub enum Commands {
174
175
Init,
175
176
176
177
// TODO: Implement this command (use git2 + fs to delete files)
177
-
#[command(name = "delete", visible_alias = "del", next_help_heading = "Delete a Submodule", about = "Deletes a submodule by name; removes it from the configuration and the filesystem.")]
178
+
#[command(name = "delete",hide = true,visible_alias = "del", next_help_heading = "Delete a Submodule", about = "Deletes a submodule by name; removes it from the configuration and the filesystem.")]
178
179
Delete,
179
180
180
181
// TODO: Implement this command (use git2). Functionally this changes a module to `active = false` in our config and `.gitmodules`, but does not delete the submodule from the filesystem.
181
-
#[command(name = "disable", visible_alias = "d", next_help_heading = "Disable a Submodule", about = "Disables a submodule by name; sets its active status to false. Does not remove settings or files.")]
182
+
#[command(name = "disable",hide = true,visible_alias = "d", next_help_heading = "Disable a Submodule", about = "Disables a submodule by name; sets its active status to false. Does not remove settings or files.")]
182
183
Disable,
183
184
184
185
#[command(name = "update", visible_alias = "u", next_help_heading = "Update Submodules", about = "Updates all submodules to their configured state.")]
@@ -198,7 +199,7 @@ pub enum Commands {
198
199
Sync,
199
200
200
201
// TODO: Implement this command
201
-
#[command(name = "generate-config", visible_aliases = ["gc","genconf"], next_help_heading = "Generate a Config File", about = "Generates a new configuration file.")]
202
+
#[command(name = "generate-config",hide = true,visible_aliases = ["gc","genconf"], next_help_heading = "Generate a Config File", about = "Generates a new configuration file.")]
202
203
GenerateConfig{
203
204
/// Path to the new configuration file to generate.
204
205
#[arg(short = 'o', long = "output", value_parser = clap::value_parser!(PathBuf), value_hint = clap::ValueHint::FilePath, default_value = "submod.toml", help = "Path to the output configuration file. Defaults to submod.toml in the current directory.")]
@@ -215,7 +216,7 @@ pub enum Commands {
215
216
},
216
217
217
218
// TODO: Implement this command (use git2) (not we can leverage this logic for `delete` because the `kill` option is the same.)
218
-
#[command(name = "nuke-it-from-orbit", visible_aliases = ["nuke-em","nuke-it","nuke-them"], next_help_heading = "Nuke It From Orbit", about = "Deletes all submodules or specific ones, removing them from the configuration and the filesystem. Optionally leaves them dead. 🚀💥👾💥💀.")]
219
+
#[command(name = "nuke-it-from-orbit",hide = true,visible_aliases = ["nuke-em","nuke-it","nuke-them"], next_help_heading = "Nuke It From Orbit", about = "Deletes all submodules or specific ones, removing them from the configuration and the filesystem. Optionally leaves them dead. 🚀💥👾💥💀.")]
// TODO: Implement this command (super simple with clap_complete/clap_complete_nushell. The latter is just another enum variant that implements the `Generator` trait like all of the other clap_complete shells.)
230
-
#[command(name = "completeme", visible_aliases = ["comp","complete","comp-me","complete-me"], next_help_heading = "Generate Shell Completions", about = "Generates shell completions for the specified shell. Completions generated to stdout.", long_about = COMPLETE_ME, value_parser = clap::value_parser!(Shell))]
230
+
// Shell completions are implemented using clap_complete/clap_complete_nushell
231
+
#[command(name = "completeme", visible_aliases = ["comp","complete","comp-me","complete-me"], next_help_heading = "Generate Shell Completions", about = "Generates shell completions for the specified shell. Completions generated to stdout.", long_about = COMPLETE_ME)]
231
232
CompleteMe{
232
233
#[arg(value_enum, action = clap::ArgAction::Set, help = "The shell to generate completions for. Supported shells: `bash`, `zsh`, `fish`, `powershell`, `elvish`, `nushell`.")]
0 commit comments