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

Consistent reference syntax in nextboot v1 action templates #31

Open
stephen-soltesz opened this issue Mar 28, 2018 · 0 comments
Open

Comments

@stephen-soltesz
Copy link
Contributor

Today, epoxy_client action templates can reference: kargs, files, env, and arbitrary vars.

However, the syntax for referencing kargs is different than the others. For example:

 {{kargs `epoxy.ipv4`}}

vs

{{.files.vmlinuz.name}}

The kargs syntax is needed to support arbitrary kernel parameters as keys. Some of which include . or - neither of which can be used in the dot-notation.

Ideally, this would be expressed as a verb (e.g. get_karg, getKarg) or all accesses would use similar syntax (e.g. get_karg, get_filename, get_var, etc.

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

No branches or pull requests

2 participants