Jose Diaz-Gonzalez
88f661b6e7
fix: properly fetch keys for config command
2020-05-29 14:50:17 -04:00
Jose Diaz-Gonzalez
a0cb7c560e
tests: fix issues with fetching config
2020-05-29 04:22:14 -04:00
Jose Diaz-Gonzalez
a93cec63be
feat: simplify flag parsing in config plugin
...
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
aa156b2834
feat: add missing config-get triggers
2020-03-10 18:19:04 -04:00
Jose Diaz-Gonzalez
ef7894fdfa
refactor: standardize help generation
2020-02-10 00:37:00 -05:00
Jose Diaz-Gonzalez
6a7d2e5252
refactor: decrease compile time for golang plugins
...
This change refactors the compiled golang plugins into 3 distinct binaries:
- commands: already existing
- subcommands/subcommands: entrypoint into all subcommands
- triggers: entrypoint into all triggers
It then further symlinks triggers and subcommands to the built binaries. This results in both a much faster build process as well as smaller package size.
2019-09-15 19:15:08 -04:00
Jose Diaz-Gonzalez
f977edabb2
feat: add config:clear command
...
Closes #3537
2019-05-20 13:26:21 -07:00
Jose Diaz-Gonzalez
04c9fe974e
feat: add json output to config:export
...
This change adds json output as both key/value as well as a list of objects. The former can be used in quick scripting environments, while the latter allows higher-level languages to have a bit more structure around how environment variables are declared. Specifically, systems such as kubernetes understand the latter method, while the former can be used within Nomad job files.
2019-04-21 18:39:06 -04:00
Jose Diaz-Gonzalez
4b63c96434
feat: pre-sort config:help commands
2019-04-21 16:16:39 -04:00
Jose Diaz-Gonzalez
884c45de0c
chore: move print calls together
2019-03-05 21:34:26 -05:00
Jose Diaz-Gonzalez
af8718cebe
fix: ensure official golang plugins have correct help output
...
Previously, golang plugins would omit subcommands for 'dokku help --all', meaning they could not be introspected upon by outside tooling.
2019-01-20 22:50:48 -05:00
Kazuhiro NISHIYAMA
c77d323f1f
Add --no-restart to config:unset of config:help
2018-05-25 19:50:15 +09:00
Mary Kate Fain
2cfcea3479
Updated help text on config:set to have commands in working order ( #3132 )
2018-03-27 21:33:03 -05:00
Jose Diaz-Gonzalez
6d43931e17
fix: properly set help output for golang applications
...
Closes #3007
2018-02-28 03:22:00 -05:00
Raine Virta
a932a421ce
Fix typo
2018-02-01 00:21:55 +02: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
Jose Diaz-Gonzalez
54d731aeee
Merge pull request #2965 from znz/remove-spaces
...
Remove spaces like helps of other subcommands
2017-11-03 18:07:12 -04:00
Kazuhiro NISHIYAMA
33a540502a
Remove spaces like helps of other subcommands
2017-11-03 12:51:40 +09:00
Kazuhiro NISHIYAMA
a3cd6f6e63
Fix typos
2017-11-03 12:42:00 +09: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
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
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
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
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
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
73e85b7df5
[config] preliminary Dockerfile support
2017-09-27 23:56:40 -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
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