Move git-sync CLI to cobra for per-subcommand help

main

Commit

Soph4mo ago

Bare git-sync and --help now print a clean subcommand listing on stdout instead of dumping the full usage block as an error. Each subcommand gets its own --help. Unknown command/flag errors fall back to the usage of the deepest matched subcommand. Flag names, env vars, positional args, JSON output, and inner error strings are unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com Entire-Checkpoint: d76bd640e293

Checkpoints

can you review the changes in this branch and read the pr description if everything looks right

CodexGPT-5.4
View session
Checkpoint 1

can you take a look at @../cli and how we structure the initial command help, can we do the same here? like if you run `git-sync` you see only the subcommands and then do `git-sync sync --help` for th

Claude CodeOpus 4.7[1m]
View session
Checkpoint 1