-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'config print'. #727
Add 'config print'. #727
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -23,12 +23,15 @@ import fs | |||
import .utils | |||
|
|||
APP_NAME ::= "artemis" | |||
|
|||
// When adding a new config don't forget to update the 'config show' command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// When adding a new config don't forget to update the 'config show' command. | |
// When adding a new config don't forget to update the 'config print' command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
going with 'show'.
CONFIG_DEVICE_DEFAULT_KEY ::= "device.default" | ||
CONFIG_BROKER_DEFAULT_KEY ::= "server.broker.default" | ||
CONFIG_ARTEMIS_DEFAULT_KEY ::= "server.artemis.default" | ||
CONFIG_SERVERS_KEY ::= "servers" | ||
CONFIG_SERVER_AUTHS_KEY ::= "auths" | ||
CONFIG_ORGANIZATION_DEFAULT_KEY ::= "organization.default" | ||
// When adding a new config don't forget to update the 'config show' command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// When adding a new config don't forget to update the 'config show' command. | |
// When adding a new config don't forget to update the 'config print' command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
going with 'show'.
src/cli/cmds/config.toit
Outdated
--run=:: show_config config ui | ||
|
||
config_cmd.add show_cmd | ||
print_cmd := cli.Command "print" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It feels like we're just getting the config here. Printing isn't really that interesting. Also, we still use 'device show'.
For configuration options, we often have 'config xxx' to show and 'config xxx 1234' to set, no?
Also, see #472.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going with show
.
Fixes toitware/artemis-releases#51