Skip to content

feat: add since init subcommand to scaffold config file - #9

Merged
outofcoffee merged 3 commits into
mainfrom
feat/init-subcommand
Aug 1, 2026
Merged

feat: add since init subcommand to scaffold config file#9
outofcoffee merged 3 commits into
mainfrom
feat/init-subcommand

Conversation

@outofcoffee

@outofcoffee outofcoffee commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Add a since init subcommand that scaffolds a since.yaml config file with commented examples.

Summary

  • Add top-level since init command that writes a since.yaml into the current directory, or a directory given via -o/--output.
  • Ship an embedded, fully commented example config covering requireBranch, pre/post hooks (command- and script-based), and commit ignore patterns.
  • Overwrite an existing config file, warning when it does so.
  • Export the config filename constant as cfg.DefaultConfigFile so the command and loader share a single source of truth.
  • Document the command in the README and cover the overwrite, write-error and config round-trip paths with tests.

@outofcoffee outofcoffee added the enhancement New feature or request label Jun 22, 2026
Add cases for overwriting an existing config, erroring on a missing
output directory, and loading the generated template through the real
config loader. Also fix the config test to use the renamed exported
DefaultConfigFile constant.
@outofcoffee
outofcoffee force-pushed the feat/init-subcommand branch from e094285 to 52b874c Compare August 1, 2026 18:08
@outofcoffee outofcoffee changed the title feat: add since init subcommand feat: add since init subcommand to scaffold config file Aug 1, 2026
@outofcoffee
outofcoffee marked this pull request as ready for review August 1, 2026 18:08
@outofcoffee
outofcoffee merged commit b37afd2 into main Aug 1, 2026
1 check passed
@outofcoffee
outofcoffee deleted the feat/init-subcommand branch August 1, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant