Skip to content

Commit da41760

Browse files
committed
refactor: move completion subcmd to end
1 parent 55471ea commit da41760

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

cli/src/commands/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,6 @@ pub enum Commands {
185185
/// Update Stakpak Agent to the latest version
186186
Update,
187187

188-
/// Generate shell completion scripts
189-
///
190-
/// Prints a completion script for the given shell to stdout. Source or
191-
/// install it according to your shell's documentation.
192-
Completion {
193-
/// Shell to generate completions for
194-
#[arg(value_enum)]
195-
shell: clap_complete::Shell,
196-
},
197-
198188
/// Autonomous 24/7 lifecycle commands
199189
#[command(subcommand)]
200190
Autopilot(AutopilotCommands),
@@ -210,6 +200,16 @@ pub enum Commands {
210200
#[command(flatten)]
211201
args: StopArgs,
212202
},
203+
204+
/// Generate shell completion scripts
205+
///
206+
/// Prints a completion script for the given shell to stdout. Source or
207+
/// install it according to your shell's documentation.
208+
Completion {
209+
/// Shell to generate completions for
210+
#[arg(value_enum)]
211+
shell: clap_complete::Shell,
212+
},
213213
}
214214

215215
async fn build_agent_client(config: &AppConfig) -> Result<AgentClient, String> {

0 commit comments

Comments
 (0)