Skip to content

docs(cli): fix command help typos, examples, and minor logging bugs#366

Open
divyansh-v15-06 wants to merge 1 commit into
microcks:masterfrom
divyansh-v15-06:docs/fix-cli-typos-and-examples
Open

docs(cli): fix command help typos, examples, and minor logging bugs#366
divyansh-v15-06 wants to merge 1 commit into
microcks:masterfrom
divyansh-v15-06:docs/fix-cli-typos-and-examples

Conversation

@divyansh-v15-06
Copy link
Copy Markdown

What does this PR do?

This PR focuses on improving the Developer Experience (DX) of the CLI by cleaning up user-facing documentation strings and fixing minor linting/logging bugs.

Specifically, this PR:

  1. Fixes start Command Typos: Corrects several spelling errors in the --help examples and flag descriptions of cmd/start.go (e.g., wnat -> want, dokcer -> docker, and missing 'r's in your).
  2. Improves stop Command DX: Adds a missing Example: block to cmd/stop.go so that the usage output is consistent with the rest of the CLI.
  3. Fixes Silent Error in Watcher: Replaces an orphaned, ignored fmt.Errorf call in pkg/watcher/executor.go with a proper fmt.Printf("[ERROR] ...") log so failures during config loading aren't swallowed silently.
  4. Fixes Typo in Config Package: Corrects a hardcoded spelling error ("undifined") returned by the GetAuth function.

Why is this important?

Accurate --help commands are essential for good developer UX. Fixing these typos makes the CLI feel more polished and professional. Additionally, fixing the swallowed error in the watcher ensures that edge-case failures are properly communicated to the user.

- Fixed spelling errors in 'microcks start' help text and examples
- Added an Example usage block to the 'microcks stop' command
- Fixed a misspelled error string in localconfig.go ('undifined' -> 'undefined')
- Replaced a silent, ignored fmt.Errorf in watcher/executor.go with a proper fmt.Printf error log

Signed-off-by: rika <divyanshanshu90@gmail.com>
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