feat: add bsk CLI auto update

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BB-fat
2026-07-08 14:14:00 +08:00
co-authored by Cursor
parent 647ae659b7
commit a7c48275f9
17 changed files with 2255 additions and 35 deletions
+2
View File
@@ -25,6 +25,7 @@ fn main() -> ExitCode {
if !matches!(cli.command, Command::Daemon(_)) {
init_cli_tracing(&cli.flags);
}
cli::update::maybe_spawn_background_check(&cli.flags, &cli.command);
let format = if cli.flags.json {
Format::Json
@@ -67,6 +68,7 @@ fn dispatch(cli: Cli, format: Format) -> Result<(), CliError> {
};
cli::install_skill::dispatch(args, output)
}
Command::Update(args) => cli::update::dispatch(args, format),
Command::Logs(cmd) => cli::logs::run(cli::logs::LogsArgs {
follow: cmd.follow,
lines: cmd.lines,