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

Support for overriding -D parameters with dot notation #83

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

atorrescogollo
Copy link

@atorrescogollo atorrescogollo commented Oct 25, 2019

Closes #82 : Feature request: parse -D parameters with dot notation.

Usage:

$ cat template.j2
Follow this steps:
1. Connect to {{ server }}
2. Enter the following credentials:
        {{ auth.username }}:{{ auth.password }}
3. Enjoy!
$ cat datasrc.yaml
server: https://myserver.com/myweb
auth:
  username: user
  password: s3cr3t
$ python3 jinja2-cli/jinja2cli/cli.py -D auth.username=admin template.j2 datasrc.yaml --format=yaml | tee README.txt
Follow this steps:
1. Connect to https://myserver.com/myweb
2. Enter the following credentials:
        admin:s3cr3t
3. Enjoy!

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.

Feature request: parse -D parameters with dot notation
1 participant