updated flake. nix package now includes completions

This commit is contained in:
2025-10-23 20:14:05 +02:00
parent 242d5b7582
commit 4a2f852f30
11 changed files with 177 additions and 191 deletions

View File

@@ -3,7 +3,14 @@ use clap::{Parser, Subcommand};
#[derive(Parser)]
pub struct Args {
#[command(subcommand)]
pub command: CommandArg
pub command: CommandArg,
}
#[derive(Subcommand)]
pub enum ShellArg {
Bash,
Fish,
Zsh,
}
#[derive(Subcommand)]
@@ -16,10 +23,13 @@ pub enum CommandArg {
InstallReveal,
/// Starts a Webserver with the live preview of the Documentation
Serve {
/// Port for the Live Server
/// Port for the Live Server
#[arg(short, long)]
port: Option<u16>
port: Option<u16>,
},
/// Generates completions for the desired shell
Completions {
#[command(subcommand)]
shell: ShellArg,
},
/// Information about the completions
Completions
}