Skip to content

Conversation

@joakimen
Copy link
Contributor

Summary

Simplifies the CLI for better developer experience by flattening the command structure and improving naming.

Command changes

Before After
cals github set-token cals auth
cals github list-repos cals repos
cals github generate-clone-commands cals clone
cals github sync cals sync
cals github generate-clone-commands --list-groups cals groups
- cals topics

Other improvements

  • Default --org to capralifecycle
  • Enable strict CLI parsing (rejects unknown commands/flags)
  • Require values for string flags (--org, --name, --topic)

Commands are now at the top level instead of nested under 'github':
- cals auth (was: cals github set-token)
- cals repos (was: cals github list-repos)
- cals clone (was: cals github generate-clone-commands)
- cals sync (was: cals github sync)

Updated README with command examples and added Makefile test targets
- Add `cals groups` command (extracted from clone --list-groups)
- Rename `--validate-cache` to `--no-cache`
- Rename `--exclude-existing` to `--skip-cloned`
- Rename `--ask-clone` to `--clone`
- Rename `--ask-move` to `--move`
@joakimen joakimen merged commit 2fe63c7 into master Jan 30, 2026
1 check passed
@joakimen joakimen deleted the cals-1241-simplify-cli-commands branch January 30, 2026 15:19
@github-actions
Copy link

🎉 This PR is included in version 3.15.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants