Skip to content

feat(cli): remove default subcommand so luca --help shows available commands#85

Merged
albertodebortoli merged 1 commit into
mainfrom
no-default-command
May 25, 2026
Merged

feat(cli): remove default subcommand so luca --help shows available commands#85
albertodebortoli merged 1 commit into
mainfrom
no-default-command

Conversation

@albertodebortoli
Copy link
Copy Markdown
Member

@albertodebortoli albertodebortoli commented May 25, 2026

Description

  • luca --help was showing the help of the install subcommand instead of listing all available commands, because defaultSubcommand: InstallCommand.self was set on the root LucaCommand.
  • Removing it restores the expected behaviour: running luca --help (or just luca) now displays the full command list.

Type of Change

  • Feature

How Has This Been Tested?

  • Manually tested locally (describe)
    • Ran swift build and verified luca --help output lists all subcommand groups.

Checklist

  • Swift code builds locally (swift build)
  • Tests pass locally (swift test)
  • Code style / formatting respected
  • Documentation updated (README / comments)

Breaking Changes?

  • No

@albertodebortoli albertodebortoli added this to the 0.19.0 milestone May 25, 2026
@albertodebortoli albertodebortoli added the feature New feature or enhancement label May 25, 2026
@albertodebortoli albertodebortoli marked this pull request as ready for review May 25, 2026 21:21
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@albertodebortoli albertodebortoli merged commit cf4a029 into main May 25, 2026
3 checks passed
@albertodebortoli albertodebortoli deleted the no-default-command branch May 25, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant