Skip to content

Feature Request - Interpolate variables in examples too #51

Open
@vikas027

Description

@vikas027

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions