Commit Graph

26 Commits

Author SHA1 Message Date
Juan Carlos Mejías Rodríguez
26a3efdd3a Add options object for PortainerClient.StackList() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
87ba553153 Rename PortainerClient.GetStacks() to StackList() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
0adb18bc8a Rename PortainerClient.GetEndpoints() to EndpointList() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
f82f116e1b Change GetTranslatedStackType to use StackType instead of Stack 2019-08-25 00:14:53 -04:00
Juan Carlos Mejías Rodríguez
be51da44bf Rename some identifiers to pass go-lint 2019-08-23 12:35:01 -04:00
Juan Carlos Mejías Rodríguez
e1b4a6f436 Move "getting endpoint info..." debug message out of common.GetEndpointSwarmClusterId() 2019-08-23 11:19:42 -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
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
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
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
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
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
70621c750c Move URL handling logic (calls to DoJson) into Client 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
c5b1dfaa82 Rewrite project in Go 2019-07-21 18:49:28 -04:00