onyo new

Create new <path>/asset(s) and add contents with --template, --keys and --edit. If the directories do not exist, they will be created.

After the contents are added, the new assets(s) will be checked for the validity of its YAML syntax and based on the rules in .onyo/validation/.

usage: onyo new [-h] [-m MESSAGE] [-t TEMPLATE] [-e] [-k KEYS [KEYS ...]]
                [-p [ASSET ...]] [-tsv TSV] [-y]

Named Arguments

-m, --message

Use the given MESSAGE as the commit message (rather than the default). If multiple -m options are given, their values are concatenated as separate paragraphs

-t, --template

the template to seed the new asset

Default: []

-e, --edit

Open new assets to edit them before creation

Default: False

-k, --keys

key-value pairs to set in assets; multiple pairs can be given (e.g. key=value key2=value2)

-p, --path

add new assets

-tsv, --tsv

tsv file describing new assets

-y, --yes

respond β€œyes” to any prompts

Default: False