[DAEMON-71] appcd config command implementation
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2017-10-25T18:19:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Appc Daemon 1.0.0 |
Components | appcd, appcd-config, appcd-config-service |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Ewan Harris |
Created | 2017-04-11T21:47:25.000+0000 |
Updated | 2017-10-26T03:04:30.000+0000 |
Description
The appcd CLI needs a
config
command that can query and change the appcd settings.
When querying, simply call /appcd/config
and display the result. If the daemon is not running, then you must read the config files and output them.
When setting, it needs to update the user-defined config file in ~/.appcelerator/appcd/config.json
. Then if the server is running, attempt to change the setting at runtime. If the setting being changed is readonly, then restart the daemon if the --force
flag is present otherwise prompt the user to restart the daemon.
Usage
appcd config
appcd config list
appcd config get <key>
appcd config set <key> <value>
appcd config delete <key>
https://github.com/appcelerator/appc-daemon/pull/92