torus-cli
torus-cli copied to clipboard
Torus run -v to give a quick stdout on the env and names of envs being set
Would be a useful flag when using torus run so that build / run logs have something like:
You are running in in prod environment and I'm injecting the following envs: X Y Z
(no values)
If we added this, we could remove torus status all together, as it'd be a good substitute.
thoughts @jeffandersen @jbowes ?
I like using torus status to just quickly know my context, rather than having to wait for a full decrypt sequence to move onto my next command (without killing the active command).
Typically I use status during setup/bootstrapping (not really before executing a command).
Something like this would be good though:
$ torus run -v ./bin/foo
Credential path: /org/project/dev-jeff/default/jeff/1
I did a portion of this: printing the env secrets when -v is specified, but I didn't format them as a path, I spit them out just as they were specified in the env, I'll do some more work on it. I do need some guidance though on how to build the CLI for testing, as running main.go doesn't really do the trick.
@johnstonmatt take a look at the Makefile, you should be able to build by just running make. You may need to run make bootstrap first!