fix: exitor opens when passing through `e`

Merged
JA
4mo ago
+64-24
  • build: add version information and version flag
  • fix: editor opens when passing through e - fixes #32 - failure due to continuation of subsequent steps rather than early exit - test suite updated

Summary by cubic

Fixes interactive create flow so typing "e" opens the editor and skips further prompts; also adds a version flag with build-time version injection. Fixes #32.

  • Bug Fixes

    • Skip labels/assignees/milestone prompts when body is "e" so the editor opens without extra input.
    • Return an error if the editor process fails.
    • Tests updated to ensure prompts are skipped and no hang occurs.
  • New Features

    • Adds --version via Cobra by setting rootCmd.Version.
    • Injects version at build time with GoReleaser -X github.com/jamesjohnsdev/issues/cmd.Version={{.Version}}; defaults to dev for local builds.