feat: add --version and init subcommands (depends on #4)#7
Open
tupe12334 wants to merge 7 commits into
Open
Conversation
4 tasks
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Builds on #4 (feat/testable-main). Adds CLI subcommands, contributor docs, doc fixes, and schema fixes:
Binary subcommands (both documented in
Installation.mdbut not implemented):steplock --version(also-V) — printssteplock 0.1.0steplock init— creates.steplock/checklists/in the current directory; idempotentDocs:
CONTRIBUTING.md— setup, project layout, test/coverage/lint commands, hook setup, PR processArchitecture.mdblank title (#→# Architecture)Architecture.mdconfig path (steplock.toml→.steplock/checklists/*/config.toml)Installation.mdcargo install command (steplock→steplock-core)packages/README.md— adds Status column showing Available vs PlannedRustdoc:
unresolved link to [*]warnings inflow.rsdoc comments (escape[*]as backtick-quoted)ChecklistConfig,Reset,FlowGraph,parse_mmd,parse_config,load_state,is_completeSchema:
session-state.schema.json— removeminItems: 1fromtransitions(empty on checklist completion is valid)Other:
*.profrawto.gitignore(coverage run artifacts)Coverage: 96.78% lines overall (remaining gaps are
process::exitpaths — inherently untestable in unit tests)Merge order: merge #5 and #4 first, then this PR. Or merge this PR directly — it includes all commits from #4.
Test plan
cargo test --all-targetspasses (11 tests in bin, 80 total)RUSTDOCFLAGS="-D warnings" cargo docproduces no warningssteplock --versionprintssteplock 0.1.0steplock initcreates.steplock/checklists/and is idempotent