Commit Graph
56 Commits
Author SHA1 Message Date
Alex Quick 2cab7f24ed [config] validate args for config:set and config:unset
Fixes dokku/dokku#3606
2019-07-14 12:16:56 -04:00
Alex Quick dad5db4e9b [feature] add --env to dokku run
`dokku run [ --env KEY=VALUE | -e KEY=VALUE ] app command`

__note__ this changes the scheduler-run trigger to expect the following arguments:
scheduler_name, app_name, env_count, env_0, ..., env_n, app_arg_0, ..., app_arg_n

resolves: dokku/dokku#3291
2019-04-28 14:42:07 -04:00
Alex Quick 34efbbd570 [config] sort config:show by key name
resolves: #3293
2018-10-27 15:48:41 -04:00
Alex Quick afeb521f07 feature: remove bad config vars from envfiles when loaded
resolves: #3036
2018-01-28 17:19:28 -05:00
Alex Quick 5fbe28f672 [config] stream output of app-restart & post-config-update plugn triggers to stdout/err 2017-12-16 11:32:06 -05:00
Alex Quick 302d82a192 fix indentation for network/repo help 2017-12-15 10:06:45 -05:00
Alex Quick 061ea9bfd7 [config] fix help output
* `dokku:help --all` was getting mangled
* `dokku config:help` wasn't working
2017-12-15 10:06:19 -05:00
Alex Quick f8e3bdc56b [config] forward output from plugn triggers to user 2017-12-15 09:37:28 -05:00
Alex Quick 92d7e8ce65 [config] let user know if they are unsetting a non-existent config key 2017-12-15 09:22:56 -05:00
Alex Quick e7faec3e26 [config] fail on setting/unsetting invalid keys 2017-12-15 09:20:18 -05:00
Alex Quick 90ee5d58c5 [config] use field names in struct literals 2017-10-24 09:12:20 -04:00
Alex Quick 98c45b55b7 fix: newlines at eof 2017-10-16 02:21:38 -04:00
Alex Quick 1be66bd1bc [config] don't alias import 2017-10-16 02:09:26 -04:00
Alex Quick 91c2164e49 [config] refactor package structure 2017-10-15 20:10:46 -04:00
Alex Quick 03830562c2 move around the members of configenv to make more sense 2017-10-12 23:49:22 -04:00
Alex Quick 430cc2b4ca [config] move PrettyPrintEnvEntries 2017-10-12 23:42:14 -04:00
Alex Quick 3f497908b5 [config] use named returns where applicable 2017-10-12 23:41:42 -04:00
Alex Quick 3422866909 [config] remove spurious newlines 2017-10-12 22:50:29 -04:00
Alex Quick b84635baf7 [config] remove old code 2017-10-12 22:49:44 -04:00
Alex Quick ad8bcecb5b [config] clean up PlugnTrigger and NewShellCmd 2017-10-12 22:38:18 -04:00
Alex Quick c896ca700c [config] remove vestige of old test 2017-10-12 21:42:18 -04:00
Alex Quick ecf67d3cdd [config] add eof newlines where needed 2017-10-12 21:40:26 -04:00
Alex Quick e9b9091de5 [config] remove extra test targets 2017-10-12 21:35:33 -04:00
Alex Quick 5d72f145df [config] restore dokku config functionality and fix docs 2017-10-01 22:50:01 -04:00
Alex Quick 60e3b37d39 [config] trigger app restart through plugn rather than exec 2017-09-27 23:56:43 -04:00
Alex Quick a8563489e7 [common] fix PlugnTrigger 2017-09-27 23:56:42 -04:00
Alex Quick a86c037a91 [config] upgrade to godotenv 1.2.0 2017-09-27 23:56:42 -04:00
Alex Quick a13722eec1 [config] update glide dependencies 2017-09-27 23:56:42 -04:00
Alex Quick 8e8b6d60f0 fix: Declare and assign separately to avoid masking return values. 2017-09-27 23:56:42 -04:00
Alex Quick 4808c047ee [config] make HasKey more idiomatic 2017-09-27 23:56:42 -04:00
Alex Quick be5e81b246 [config] config:get exit with status 1 if key is not set in env 2017-09-27 23:56:42 -04:00
Alex Quick a22594b891 [config] update docs 2017-09-27 23:56:41 -04:00
Alex Quick 4f5c747c99 [config] add config:export --format shell 2017-09-27 23:56:41 -04:00
Alex Quick e7a81a8f8b [config] error message when no key is given for config:get 2017-09-27 23:56:41 -04:00
Alex Quick 32414b343a [config] show empty config when ENV file doesn't exist yet 2017-09-27 23:56:41 -04:00
Alex Quick eeb6e78fa4 [config] move to godotenv 2017-09-27 23:56:41 -04:00
Alex Quick 08aa2b9fa4 [config] improve logging and default command 2017-09-27 23:56:41 -04:00
Alex Quick 8b90d4ebf9 [config] move vendor to right place 2017-09-27 23:56:41 -04:00
Alex Quick 133fdc1f0a [config] support for old export-style config files 2017-09-27 23:56:41 -04:00
Alex Quick e7e01ee838 [config] fix shellcheck 2017-09-27 23:56:40 -04:00
Alex Quick 12c9536a7b [config] test python buildpack too 2017-09-27 23:56:40 -04:00
Alex Quick c20fbfccf6 [config] support for env bundles 2017-09-27 23:56:40 -04:00
Alex Quick fd27d90303 [config] config:export --merge, --prefix, & --suffix 2017-09-27 23:56:40 -04:00
Alex Quick 686428a41a [config] lint fixes 2017-09-27 23:56:40 -04:00
Alex Quick 73e85b7df5 [config] preliminary Dockerfile support 2017-09-27 23:56:40 -04:00
Alex Quick dfa241d6a9 [dockerfile] test new config stuff 2017-09-27 23:56:40 -04:00
Alex Quick dd8e1fdf45 [config] no longer reenter dokku in config/functions 2017-09-27 23:56:40 -04:00
Alex Quick 21b091ab14 [config] update test-deploy-config to include odd characters 2017-09-27 23:56:40 -04:00
Alex Quick 416b499670 [nginx-proxy] remove trailing spaces from PROXY_PORT_MAP
this plugin used to rely on the fact that config
supressed trailing spaces
2017-09-27 23:56:39 -04:00
Alex Quick dc90a889d7 [config] add config:set --encoded (base64)
You can now set b64encoded values. They are
stored decoded, this is so dokku over ssh can set
odd config values
```
config:set --encoded KEY=BASE_64_VALUE
```
2017-09-27 23:56:39 -04:00
Alex Quick 14757ca925 [config] change file format to match bash exports
got rid of nonstandard escaping/quoting so that
the disk file is a strict subset of valid bash exports
2017-09-27 23:56:39 -04:00
Alex Quick 7d865ccb1f [config] refactor makefile 2017-09-27 23:56:39 -04:00
Alex Quick 294d4b1f29 [config] first cut of config rewritten in golang
still to do:
* Rework disk format to be okay with quotes
* Fix Dockerfile deployments
* Dedup code in the subcommands
* Add --encode
* Add deploytests for the new stuff
* Restore some log messages (should I make some helpers in common?)
* Restore some functions that may be used by 3d-party plugins
2017-09-27 23:56:39 -04:00
Alex Quick 5e3184b61d [common] helper for go trigger plugn events 2017-09-27 23:56:39 -04:00
Alex Quick e57e1408b2 [common] add NewTokenizedShellCmd to ShellCmd 2017-09-27 23:56:39 -04:00
Alex Quick ef95d2bcd4 [config] test some config oddities 2017-09-27 23:56:39 -04:00