Skip to content

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