nodus 0.6.0

Local-first CLI for managing project-scoped agent packages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::CommandFactory;
use clap_complete::{Shell, generate};

use crate::cli::args::Cli;
use crate::cli::handlers::CommandContext;

pub(crate) fn handle_upgrade(context: &CommandContext<'_>, check: bool) -> anyhow::Result<()> {
    crate::update_checker::upgrade(context.reporter, check)
}

pub(crate) fn handle_completion(shell: Shell) -> anyhow::Result<()> {
    let mut command = Cli::command();
    let name = command.get_name().to_string();
    generate(shell, &mut command, name, &mut std::io::stdout());
    Ok(())
}