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

adds args,osArgs predefined data for config tmpl #63

Merged
merged 6 commits into from
Aug 31, 2020

Conversation

davidovich
Copy link
Owner

user can now use {{ index .args 0 }} to get at the passed arguments

invokable arguments can be defined in multiple arrays which will
be flattened. This allows yaml anchor usages:

base: &base
 - a
 - b
...
exec:
  bash -c:
    echo: [*base, c, d]

Without flattening, this would result in:

[[a,b], c, d], but now, it renders nicely to [a, b, c, d]

@davidovich davidovich force-pushed the introduce-args-and-args-flatten branch from 51f0cf4 to 18218d1 Compare August 29, 2020 18:22
user can now use {{ index .args 0 }} to get at the passed arguments

invokable arguments can be defined in multiple arrays which will
be flattened. This allows yaml anchor usages:

```
base: &base
 - a
 - b
...
exec:
  bash -c:
    echo: [*base, c, d]
```

Without flattening, this would result in:

[[a,b], c, d], but now, it renders nicely to [a, b, c, d]
merge array representation with final arg array
@davidovich davidovich force-pushed the introduce-args-and-args-flatten branch from de1f57e to a4e3f5e Compare August 31, 2020 01:54
@davidovich davidovich merged commit 6c38b32 into master Aug 31, 2020
@davidovich davidovich deleted the introduce-args-and-args-flatten branch August 31, 2020 13:25
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

Successfully merging this pull request may close these issues.

1 participant