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 - Interpolate variables in examples too #51

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

Feature Request - Interpolate variables in examples too #51

vikas027 opened this issue Dec 18, 2020 · 2 comments

Comments

@vikas027
Copy link

It would be good to have interpolation of variables in examples too

variables:
  iac: terraform

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

This results in this

✦ ❯ robo help hello

  Usage:

    hello 

  Description:

    some task

  Examples:
  
    Find path of {{ .iac }}
    $ which {{ .iac }}

I would like is

✦ ❯ robo help hello

  Usage:

    hello 

  Description:

    some task

  Examples:
  
    Find path of terraform
    $ which terraform
@jenpet
Copy link
Contributor

jenpet commented Jun 23, 2022

I created a small pr for this and also added the usage property: #57

@jenpet
Copy link
Contributor

jenpet commented Jul 7, 2022

PR is merged @vikas027. Should be available in the next release (0.8.0) I assume.

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