Skip to content

feat: add --version flag and steplock init subcommand#12

Merged
tupe12334 merged 1 commit into
mainfrom
feat/cli-init-version
Jun 11, 2026
Merged

feat: add --version flag and steplock init subcommand#12
tupe12334 merged 1 commit into
mainfrom
feat/cli-init-version

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

  • steplock --version (and -V) prints the version from Cargo.toml — lets users verify the binary installed correctly, as documented in Installation.md
  • steplock init creates .steplock/checklists/ and .steplock/.gitignore in the current directory — scaffolds the project structure as documented in Installation.md
  • Both subcommands include tests covering happy path and idempotency

Test plan

  • cargo test passes
  • steplock --version prints steplock 0.1.0
  • steplock init creates .steplock/checklists/ and .steplock/.gitignore
  • Running steplock init a second time prints "already exists" and exits 0

🤖 Generated with Claude Code

`steplock --version` (and -V) prints the binary version from Cargo.toml.
`steplock init` creates .steplock/checklists/ and .steplock/.gitignore
in the current directory; both are documented in Installation.md but
were previously unimplemented.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tupe12334 tupe12334 marked this pull request as ready for review June 11, 2026 20:02
@tupe12334 tupe12334 merged commit bc9387e into main Jun 11, 2026
3 checks passed
@tupe12334 tupe12334 deleted the feat/cli-init-version branch June 11, 2026 20:02
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