torus-cli icon indicating copy to clipboard operation
torus-cli copied to clipboard

Torus run -v to give a quick stdout on the env and names of envs being set

Open PLaRoche opened this issue 8 years ago • 4 comments

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)

PLaRoche avatar Apr 05 '17 13:04 PLaRoche

If we added this, we could remove torus status all together, as it'd be a good substitute.

thoughts @jeffandersen @jbowes ?

ianlivingstone avatar Apr 06 '17 14:04 ianlivingstone

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

jeffandersen avatar Apr 06 '17 16:04 jeffandersen

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 avatar Jun 17 '17 01:06 johnstonmatt

@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!

ianlivingstone avatar Jun 17 '17 17:06 ianlivingstone