Commit Graph

176 Commits

Author SHA1 Message Date
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
933f73896b Merge branch 'enhaced-format-help' 2019-08-10 17:23:30 -04:00
Juan Carlos Mejías Rodríguez
4db5265dc6 Merge branch 'portainer-structs' 2019-08-10 17:22:48 -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
65c7b6cafc Add helper to generate docs for --format flags 2019-08-10 16:49:37 -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
bffadc245c Replace fixed docker image name with CI_REGISTRY_IMAGE envvar
This makes it easier to change the Docker registry
it is published to
2019-08-09 22:41:07 -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
579025f8de Merge branch 'more-flexible-configs' 2019-08-09 19:14:11 -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
3f788efff5 Remove commit hash uppercase in version and User-Agent strings 2019-08-09 15:17:55 -04:00
Juan Carlos Mejías Rodríguez
cf823f9dcf Add custom User-Agent to API requests 2019-08-09 15:16:12 -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
245b84d0b4 Remove error checking helper in util/errors.go
It was previously moved to common/errors.go
2019-08-09 14:25:43 -04:00
Juan Carlos Mejías Rodríguez
2e74ac508b Fix Dockerfile environment variables 2019-08-09 14:21:11 -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
aeba258ef8 Merge branch 'endpoint-groups' 2019-08-09 13:29:41 -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
2261b4f6ac Add GetEndpointGroups() function to client 2019-08-09 13:17:40 -04:00
Juan Carlos Mejías Rodríguez
219adc5c76 Add EndpointGroup struct 2019-08-09 13:17:20 -04:00
Juan Carlos Mejías Rodríguez
8a7bb9e79d Remove unused fields from client.Stack struct 2019-08-09 13:06:47 -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
2456c349d1 Add testify to the module requirements 2019-08-09 12:40:53 -04:00
Juan Carlos Mejías Rodríguez
7fcdd73066 Move Portainer API URL parsing outside the client 2019-08-09 12:39:40 -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
5506b625b4 Remove ShortCommit from goreleaser snapshots archive name 2019-08-09 11:15:15 -04:00
Juan Carlos Mejías Rodríguez
dd8e928698 Update version string building 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
a6a4a70996 Use + as a build metadata separator in version
Follows SemVer
2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
ea30e28261 Move version setting to goreleaser 2019-08-09 01:42:13 -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
2b2327939a Change base docker image to alpine:3 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
d9e548f9dc Remove goreleaser snapshot name template
I prefer the default "SNAPSHOT-{{.ShortCommit}}"
2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
d0956a1281 Update goreleaser project name 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
e4fc69c8b8 Add goreleaser config for GitHub releases 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
84fb17f6ea Prevent goreleaser from publishing docker images for pre-releases 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
3bb570b9ef Add go module config 2019-08-09 01:42:13 -04:00