Skip to content

Add missing 'service' subcommand to daemon usage message#156

Merged
alexeyzimarev merged 1 commit into
mainfrom
fix-daemon-usage-service
Jun 14, 2026
Merged

Add missing 'service' subcommand to daemon usage message#156
alexeyzimarev merged 1 commit into
mainfrom
fix-daemon-usage-service

Conversation

@alexeyzimarev

Copy link
Copy Markdown
Member

What

The kcap daemon wrong-command usage message (PrintUsage() in DaemonCommands.cs) listed <start|stop|status|logs|doctor> but omitted service, even though:

  • service is dispatched at DaemonCommands.cs:27
  • it is fully documented in help-daemon.txt
  • it is documented in README.md (kcap daemon service install, etc.)

This brings the error text in sync with the actual, already-documented CLI surface.

Changes

  • Added service to the usage synopsis line
  • Added a service <action> entry to the subcommand list

No README change needed — this only syncs the error text to the existing public surface.

🤖 Generated with Claude Code

The `kcap daemon` wrong-command usage text omitted the `service`
subcommand, even though it is dispatched and fully documented in
help-daemon.txt and the README.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@qodo-code-review

qodo-code-review Bot commented Jun 14, 2026

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix kcap daemon usage text to include the service subcommand
🐞 Bug fix 🕐 Less than 5 minutes

Grey Divider

Walkthroughs

Description
• Add missing service subcommand to kcap daemon usage synopsis.
• Document service  in the printed subcommand list.
Diagram
graph TD
  U["CLI user"] --> CLI["kcap daemon"] --> PU["DaemonCommands.PrintUsage()"] --> OUT["stderr usage text"]
Loading
High-Level Assessment

The direct fix—updating the usage synopsis and subcommand list—best matches the existing CLI surface and documentation, without introducing new command plumbing or additional documentation churn.

Grey Divider

File Changes

Bug fix (1)
DaemonCommands.cs Include 'service' in 'kcap daemon' usage output +2/-1

Include 'service' in 'kcap daemon' usage output

• Updates the 'PrintUsage()' error/help text to list 'service' in the synopsis and adds a corresponding 'service <action>' line in the subcommand list, aligning the usage message with the already-supported 'service' dispatcher.

src/Capacitor.Cli/Commands/DaemonCommands.cs


Grey Divider

Qodo Logo

@alexeyzimarev alexeyzimarev merged commit c2c7cdc into main Jun 14, 2026
5 checks passed
@alexeyzimarev alexeyzimarev deleted the fix-daemon-usage-service branch June 14, 2026 16:49
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