Skip to content

Feature/non interactive mode#8

Open
masonn85 wants to merge 2 commits into
kushvinth:mainfrom
masonn85:feature/non-interactive-mode
Open

Feature/non interactive mode#8
masonn85 wants to merge 2 commits into
kushvinth:mainfrom
masonn85:feature/non-interactive-mode

Conversation

@masonn85
Copy link
Copy Markdown

Hi!

I have made the following changes:

  • Add -n/--non-interactive flag to explicitly disable prompts (previously, passing all args achieved this but was implicit)
  • In non-interactive mode:
    • license is always required
    • author optional (falls back to git config like interactive mode)
    • year optional (defaults to current year like interactive mode)
  • Add --force flag to overwrite existing LICENSE file
  • In interactive mode, existing LICENSE now triggers a confirmation prompt

I tested all variants manually and found no errors

masonn85 added 2 commits May 10, 2026 23:54
- Add `-n/--non-interactive` flag to disable prompts
- In non-interactive mode: `--license` required; `--author` optional (uses git config); `--year` defaults to current year
- Backwards compatible; interactive mode unchanged
- Prevent accidental overwriting of existing LICENSE
- Interactive mode shows confirmation prompt
- Non-interactive mode fails without --force
- --force overrides check and overwrites silently
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