Releases: CenturyLinkCloud/clc-go-cli
Table Output, Autocomplete and more
In this release:
- The
--format
option was renamed into--output
. Also, a bug was fixed where the program panicked with the option value not being a string. - Table formatter was implemented. Apply it via
--output table
. - Bash autocomplete was added. With it, resources, commands, option names and argument names can be completed now. So far, there is no support for the autocomplete of option and argument values. Windows Power Shell support is yet to be added too.
- 2 new commands were added:
server add-secondary-network
andserver remove-secondary-network
. See the API docs for details.
Releases now contain scripts to install the autocomplete. See README for more info.
MD5sums:
dc30a720ac687d45c20c22941dbb3407 clc-2015-08-18-linux-amd64.tar.gz
More commands and stuff
In this release:
server start-mainenance-mode
,server stop-maintenance-mode
andserver import
were implemented.- The
--password
argument forserver create
andserver update
was renamed into--root-password
to avoid conflicts with the password option. - The functionality of exporting/loading arguments to/from files was implemented.
- Help was improved, both internally (command help is now constructed from a template) and from the user perspective (options and environment variables were included).
- Fixed a bug where query aliases may have not be applied if specified with unnormalized field names.
- Some guests from the Infrastracture camp came: Godeps, the
build
script and a short README.
MD5sums:
clc-2015-08-10-linux-amd64.tar.gz - 9848ad3ada006b9133ea4c66da72d763
Introducing filters
In this release:
-
Support for filters was added. A filter can be specified via
--filter
option. For example, now we can filter out the servers that are inactive or whose os type does not contain the "Ubuntu 14" string like that:clc server list --filter status=active,os-type~="Ubuntu 14"
For more info refer to the design document.
-
A bug where queries with unnormalized fields may have not worked was fixed.
MD5sums:
clc-2015-08-10-linux-amd64.tar.gz - 80e698dbb32c5a96414791b8283c2b84
Initial release
This is the first release of the project.
Below is a brief description of the already implemented functionality. For more information refer to the project's design document and API docs.
Commands
The following commands are implemented so far:
- login
- alert-policy create, list, get, update, delete
- anti-affinity-policy create, list, get, update, delete
- custom-fields get
- data-center list, get, get-deployment-capabilities
- group create, list, get, update, delete, archive, restore, get-billing-details, get-monitoring-statistics
- network create, list, get, update, release, list-ip-addresses
- server create, list, get, update, delete, get-credentials, get-imports, add-ip-address, get-ip-address, remove-ip-address, update-ip-address, power-on, power-off, pause, reset, shut-down, archive, restore, create-snapshot, revert-to-snapshot, delete-snapshot
- firewall-policy create, list, get, update, delete
- load-balancer-pool create, list, get, update, delete
- load-balancer create, list, get, update, delete, get-nodes, update-nodes
- wait
All of the command parameters documented in the API docs are supported, but not all the validations possible are made on the client side yet.
Command options
The following options are supported so far:
- --help -
clc --help
,clc <resource> --help
andclc <resource> <command> --help
all work butserver create
is the only command with the full help for now - --user - sets user for account authentication
- --password - sets password for account authentication
- --profile - chooses one of the authentication profiles (user and password) from the config
- --trace - prints HTTP request/response data to stdout
- --format - sets the output format, either
json
(default),text
, ortable
, for now onlyjson
-formatter is implemented - --query - specifies fields, possibly nested, to show in the output
Environment variables
Environment variables can be used instead of some of the command options. Support is provided for the following ones:
- CLC_USER
- CLC_PASSWORD
- CLC_PROFILE
- CLC_TRACE - any non-empty value is sufficient to switch on tracing
Also, authentication information can be stored in the ~/.clc/config.yml
. The one with empty values is created automatically on the first execution of any command. clc login
command can be used to save the given credentials to the config. After credentials are saved to the config, there is no need for further specifying them on the command line.
MD5sums:
- clc-2015-08-07-linux-amd64.tar.gz - afb4faaa9ee3e4a7c8f3142906e2c25f