feat: add completions subcommand

This commit is contained in:
2026-09-04 12:39:16 +00:00
parent 627812029d
commit ef19f49c63
5 changed files with 56 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
use super::{Django, DockerCompose, Link, Postgres};
use clap::{Parser, Subcommand};
use clap_complete::Shell;
/// A program for interacting with various dockerized applications.
#[derive(Parser, Debug)]
@@ -34,4 +35,10 @@ pub enum Commands {
#[command(subcommand)]
command: Link,
},
/// Print a shell completion script on stdout
Completions {
/// Shell to generate the script for
shell: Shell,
},
}