Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Add option to read config var values from stdin #383

Open
ghost opened this issue Jun 19, 2012 · 4 comments
Open

Add option to read config var values from stdin #383

ghost opened this issue Jun 19, 2012 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 19, 2012

Add an option to the Heroku client to reade the value of a config var from stdin.

Something like:
heroku config:add REDIS_URL —prompt —app dark-river-123

By adding an option like "--prompt" or "--stdin" we can solve two problems:

  • Ability to easily read secrets from a file using shell redirection
  • Ability to paste secrets without showing them on the screen or getting in the shell history

The heroku client should detect whether standard input is a TTY, and optionally prompt for the secret value, possibly with echo disabled.

@ddollar
Copy link
Contributor

ddollar commented Jun 19, 2012

We could make this default behavior if you dont include the =value part.

@ghost
Copy link
Author

ghost commented Jun 19, 2012

That does seem a bit cleaner

@tmaher
Copy link
Contributor

tmaher commented Jun 19, 2012

Yeah, do that.

@geemus
Copy link
Contributor

geemus commented Jul 18, 2012

Thanks for the input everybody. It's on my list (just not quite at the top presently). Happy to help out if anybody wants to take a shot at a pull request though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants