You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zk/tests/config-extra.tesh

31 lines
720 B
Plaintext

$ cd extra
# Test usage of `extra` in templates.
$ zk new --dry-run --title "Test"
># Test
>
>Visibility: public
>Color: red
>Extra: {"color":"red","visibility":"public"}
2>{{working-dir}}/public-test.md
# Overridden extra in groups.
$ zk new journal --dry-run --title "Test"
># Test
>
>Visibility: private
>Color: red
>Extra: {"color":"red","visibility":"private"}
2>{{working-dir}}/journal/private-test.md
# Overridden extra on the CLI.
$ zk new journal --dry-run --title "Test" --extra visibility=protected,show-header=1
># Test
>Behold, the mighty dynamic header!
>
>Visibility: protected
>Color: red
>Extra: {"color":"red","show-header":"1","visibility":"protected"}
2>{{working-dir}}/journal/protected-test.md