Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Optionally Print the command before running a task and maybe some #50

Open
vikas027 opened this issue Dec 18, 2020 · 2 comments

Comments

@vikas027
Copy link

I think it will be a good idea to optionally print the command before running a task to make the output a bit easier to read. I am proposing to make this optional and the command in some case could contain secrets too.

Also, it would be great if we can some line breaks or something more readable between tasks. As of now, reading logs is a bit difficult as there is no distinction in the logs.

Alternate solution:
use an echo statement in the command itself

hello:
  summary: some task
  command: |
    echo which terraform
    which terraform
@yields
Copy link
Collaborator

yields commented Dec 21, 2020

Perhaps we should add a -v | --verbose flag, would that work for you?

@vikas027
Copy link
Author

Hey @yields ,

That does not help much. I don't see the command being run

---
hello1:
  summary: some task1
  command: |
    echo which {{ .iac }}
    which {{ .iac }}
  examples: # robo help tf-plan-mod
    - description: Find path of {{ .iac }}
      command: which {{ .iac }}

hello2:
  summary: some task2
  command: |
    robo -c {{ .robo.file }} hello1
    echo which {{ .iac }}
    which {{ .iac }}

This is the output

❯ robo hello2 --verbose
which terraform
/usr/local/bin/terraform
which terraform
/usr/local/bin/terraform

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

No branches or pull requests

2 participants