Skip to content

cli: require aliases and add system settings commands - #48

Merged
jkandasa merged 2 commits into
mycontroller-org:mainfrom
jkandasa:cli_enhancements
Sep 13, 2026
Merged

cli: require aliases and add system settings commands#48
jkandasa merged 2 commits into
mycontroller-org:mainfrom
jkandasa:cli_enhancements

Conversation

@jkandasa

Copy link
Copy Markdown
Member

Summary

  • Replace login/logout with myc alias set|list|remove. There is no default alias; every server command takes the alias as its first argument (myc get node home).
  • Add myc --version for full client version details (no alias). Config file is --config, then $MYC_CONFIG, then $HOME/.mycontroller.yaml.
  • Replace myc version with myc server info <alias>.
  • Add myc get settings / myc set settings for system settings, including dotted key paths and --file merge.

Test plan

  • go test ./cmd/client/command/alias/ ./cmd/client/command/get/ ./cmd/client/command/set/ ./cmd/client/api/
  • myc alias set home http://localhost:8080 then myc get node home
  • myc --version (no alias) and myc server info home
  • myc get settings home, myc get settings home geoLocation, myc set settings home language en
  • Unknown alias fails immediately; myc delete gateway home <id> works

Replace login/logout with myc alias set/list/remove. Every server command
takes the alias as its first argument. Add myc --version, myc server info,
and get/set settings with dotted key paths. Config file can be set with
--config or MYC_CONFIG.
Replace the sample alias name home with <alias> in docs and --help text.
@jkandasa
jkandasa merged commit 8f95da0 into mycontroller-org:main Sep 13, 2026
1 check passed
@jkandasa
jkandasa deleted the cli_enhancements branch September 13, 2026 08:27
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