Skip to content

feat: add --version and init subcommands#6

Closed
tupe12334 wants to merge 1 commit into
mainfrom
feat/cli-subcommands
Closed

feat: add --version and init subcommands#6
tupe12334 wants to merge 1 commit into
mainfrom
feat/cli-subcommands

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

  • steplock --version (also -V) prints the version and exits — matches what Installation.md documents
  • steplock init creates .steplock/checklists/ in the current directory — matches what Installation.md documents
  • No-arg mode unchanged: reads stdin as hook event (existing behavior)
  • 3 new tests: version_string_is_nonempty, cmd_init_creates_checklists_dir, cmd_init_is_idempotent

Test plan

  • cargo test --all-targets passes
  • steplock --version prints steplock 0.1.0
  • steplock init creates .steplock/checklists/ and is idempotent
  • CI passes on this PR

@tupe12334

Copy link
Copy Markdown
Member Author

Superseded by #7 which builds on #4 (testable-main) and avoids the merge conflict

@tupe12334 tupe12334 closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant