Skip to content

feat: add CLI UX flags (--quiet, --verbose, --yes) for ao init#28

Merged
Shooksie merged 1 commit intomainfrom
ao/task-150
Mar 22, 2026
Merged

feat: add CLI UX flags (--quiet, --verbose, --yes) for ao init#28
Shooksie merged 1 commit intomainfrom
ao/task-150

Conversation

@Shooksie
Copy link
Copy Markdown
Contributor

Add comprehensive CLI UX flags to control output verbosity:

  • --quiet/-q: Suppress progress messages, only show errors and final result
  • --verbose/-v: Show detailed step-by-step output during detection and generation
  • --yes/-y: Skip all confirmation prompts (non-interactive mode)

Changes:

  • Create src/utils/logger.ts with configurable output levels and helper methods
  • Update InitOptions interface in src/commands/init.ts with new options
  • Add new CLI options to commander in src/index.ts
  • Update initCommand to use logger and respect verbosity levels
  • Add comprehensive tests for logger module and new init command flags
  • Add examples to help text showing new flag usage

The logger provides methods for different output types:

  • info, success, warn, error: Normal verbosity messages
  • debug, step, detection, generation: Verbose-only messages
  • banner, list, result: Output formatting helpers
  • isYes(), isQuiet(), isVerbose(): State query methods

Add comprehensive CLI UX flags to control output verbosity:

- --quiet/-q: Suppress progress messages, only show errors and final result
- --verbose/-v: Show detailed step-by-step output during detection and generation
- --yes/-y: Skip all confirmation prompts (non-interactive mode)

Changes:
- Create src/utils/logger.ts with configurable output levels and helper methods
- Update InitOptions interface in src/commands/init.ts with new options
- Add new CLI options to commander in src/index.ts
- Update initCommand to use logger and respect verbosity levels
- Add comprehensive tests for logger module and new init command flags
- Add examples to help text showing new flag usage

The logger provides methods for different output types:
- info, success, warn, error: Normal verbosity messages
- debug, step, detection, generation: Verbose-only messages
- banner, list, result: Output formatting helpers
- isYes(), isQuiet(), isVerbose(): State query methods
@Shooksie Shooksie merged commit f612a31 into main Mar 22, 2026
0 of 9 checks passed
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