sparrow-cli 0.4.0

A local-first Rust agent cockpit — route, run, replay, rewind
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Shell completions for Sparrow
// Generate with: sparrow completions <shell>
// Or: cargo run -- completions bash

pub fn generate(shell: &str) -> String {
    match shell {
        "bash" => include_str!("../completions/sparrow.bash").to_string(),
        "zsh" => include_str!("../completions/_sparrow").to_string(),
        "fish" => include_str!("../completions/sparrow.fish").to_string(),
        "powershell" => include_str!("../completions/_sparrow.ps1").to_string(),
        _ => "Unknown shell. Supported: bash, zsh, fish, powershell".to_string(),
    }
}