8000 Support for variables of type=list? · Issue #35 · uber/astro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support for variables of type=list? #35

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

Open
benfortuna opened this issue May 23, 2019 · 1 comment
Open

Support for variables of type=list? #35

benfortuna opened this issue May 23, 2019 · 1 comment

Comments

@benfortuna
Copy link

Is this possible? From the docs it appears a list is expanded to multiple executions.

@dansimau
Copy link
Contributor
dansimau commented Jun 14, 2019

Sorry for the delayed response. I don't think this will work currently.

If I was going to implement it, my first thought would be to represent lists using [] brackets, e.g.:

astro plan --foo="[one, two, three], [four, five, six]"

That would add some complications around the filtering of allowed values.

Maybe another option would be to add a configuration flag saying to signal that it's a list, e.g.:

flags:
  foo:
    name: foo
    type: list

Which would then alter the behaviour of astro to interpret the CSV as-is.

Are you able to share a little bit more about your use-case?

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
2DB6 @dansimau @benfortuna
0