Commit Graph

60 Commits

Author SHA1 Message Date
Juan Carlos Mejías Rodríguez
d2030e6bfb Add endpoint inspect command to inspect an endpoint 2019-08-17 16:29:39 -04:00
Juan Carlos Mejías Rodríguez
6782318c60 Add stack inspect command to inspect a stack 2019-08-17 16:27:59 -04:00
Juan Carlos Mejías Rodríguez
3915fa6b92 Add json format to logs 2019-08-17 16:08:57 -04:00
Juan Carlos Mejías Rodríguez
3dec0205a6 Remove copyright header from cmd/endpointList.go 2019-08-17 12:36:05 -04:00
Juan Carlos Mejías Rodríguez
5b4f344247 Change endpoint selection strategy from ID to Name 2019-08-15 23:01:11 -04:00
Juan Carlos Mejías Rodríguez
d28a78cf28 Enhance error handling 2019-08-15 20:51:17 -04:00
Juan Carlos Mejías Rodríguez
52b11947e7 Add JSON output format 2019-08-14 01:55:39 -04:00
Juan Carlos Mejías Rodríguez
0cdaf49425 Mover version-related code to the version package 2019-08-13 23:33:49 -04:00
Juan Carlos Mejías Rodríguez
50d246ecf7 Lowercase error messages 2019-08-10 18:28:00 -04:00
Juan Carlos Mejías Rodríguez
3d6d151d6d Remove auto-generated comment 2019-08-10 18:24:25 -04:00
Juan Carlos Mejías Rodríguez
fb5bb20627 Update usage examples in commands with --format flag 2019-08-10 17:23:38 -04:00
Juan Carlos Mejías Rodríguez
9551afd432 Integrate --format flag docs helper with commands 2019-08-10 16:51:36 -04:00
Juan Carlos Mejías Rodríguez
0b887b414b Replace Portainer struct copies with original ones wherever possible 2019-08-10 12:14:55 -04:00
Juan Carlos Mejías Rodríguez
79acf44225 Add config list --format documentation 2019-08-09 19:32:36 -04:00
Juan Carlos Mejías Rodríguez
49367f2a11 Split config setting and getting in two new commands config set and config get 2019-08-09 19:11:14 -04:00
Juan Carlos Mejías Rodríguez
648cd6651a Add more fields, default table format and --format custom format flag to config list command 2019-08-09 19:00:49 -04:00
Juan Carlos Mejías Rodríguez
feae59a058 Remove config list --keys flag 2019-08-09 15:43:45 -04:00
Juan Carlos Mejías Rodríguez
4c2d66e7b4 Add suggestions to FatalLevel log messages 2019-08-09 14:57:35 -04:00
Juan Carlos Mejías Rodríguez
1f78446a6f Change "unknown log level" ErrorLevel message to WarningLevel with implications 2019-08-09 14:53:20 -04:00
Juan Carlos Mejías Rodríguez
12b89062c7 Add implications to WarningLevel log messages 2019-08-09 14:51:25 -04:00
Juan Carlos Mejías Rodríguez
105178c07c Update required flag stack-file not set log message
Now it looks more like default "required flag" errors
2019-08-09 14:44:32 -04:00
Juan Carlos Mejías Rodríguez
14ab4f65f9 Remove -q, --quiet flag from stack list command
The same result can be achieved with --format flag,
which provides greater flexibility:

./psu stack ls --format "{{ .Name }}"
2019-08-09 14:21:11 -04:00
Juan Carlos Mejías Rodríguez
00f4a206e4 Simplify table output column header names 2019-08-09 14:21:11 -04:00
Juan Carlos Mejías Rodríguez
1ab1333540 Add command to list endpoint groups 2019-08-09 13:29:16 -04:00
Juan Carlos Mejías Rodríguez
bf7fd60550 Remove swarm IDs from output 2019-08-09 12:55:03 -04:00
Juan Carlos Mejías Rodríguez
51ce690e1f Remove entry point and project path from stack list command output columns 2019-08-09 12:51:58 -04:00
Juan Carlos Mejías Rodríguez
cf9ecabc7a Replace "cluster" with "swarm" in log messages 2019-08-09 11:48:41 -04:00
Juan Carlos Mejías Rodríguez
2dc134e45d Add endpoint to stack removal related logs 2019-08-09 11:47:32 -04:00
Juan Carlos Mejías Rodríguez
ab7bc222aa Fix double stack retrieval while removing stack 2019-08-09 11:45:51 -04:00
Juan Carlos Mejías Rodríguez
d4956584a1 Add log message after stack deployment or removal 2019-08-09 11:38:59 -04:00
Juan Carlos Mejías Rodríguez
535eada8ab Guess endpoint ID if not set when deploying or removing stacks 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
e7a48ccc3e Rename client to portainerClient in stack remove command to avoid collision with package name 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
d458e5d379 Replace calls to viper.GetUint32() with viper.GetInt32()
Viper doesn't have uint support until v1.4.0
2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
6171228435
Fix typo in "Unknown configuration key" error 2019-08-08 15:47:23 -04:00
Juan Carlos Mejías Rodríguez
042fde2c79 Add --endpoint flag to remove command 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
ba9f9b8725 Add extra logging when getting stack by name 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
b3f1989a25 Fix inconsistencies with EndpointID and SwarmID filtering 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
c4e2f0145f Enhance flag descriptions 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
faf021e863 Replace debug and verbose modes with logging levels 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
7589f97105 Move util.NewTabWriter to common.NewTabWriter 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
1830fea7b7 Move PrintVerbose() calls in client to it's callers 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
356979a7a4 Move util.CheckError to common.CheckError 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
9c79379191 Split common package into common, client, and util packages 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
4f3892368e Move deactivation of token usage for authentication into Authenticate() 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
cdc54111a1 Add flexibility to Portainer client creation 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
00439cc1c1 Delay new auth token retrieval until it is really necessary 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
70621c750c Move URL handling logic (calls to DoJson) into Client 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
fa666db1b8 Replace manual request creation and marshaling with new client 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
a22aaa20f5 Format code 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
d770da7414 Enhance error printing 2019-07-23 22:44:29 -04:00