onyo mkdir

Create DIRECTORYs or convert Asset Files into Asset Directories.

Intermediate directories are created as needed (i.e. parent and child directories can be created in one call).

An empty .anchor file is added to each directory, to ensure that git tracks them even when empty.

If a DIRECTORY is already a directory or a protected path, then Onyo will error and leave everything unmodified.

usage: onyo mkdir [-h] [-m MESSAGE] [--no-auto-message] DIR [DIR ...]

Positional Arguments

DIR

Directories to create; or assets to convert into an Asset Directory.

Named Arguments

-m, --message

Append MESSAGE to the commit message. If multiple --message options are given, their values are concatenated as separate paragraphs.

--no-auto-message

Do not auto-generate the commit message subject. If no MESSAGE is given, the subject line will be [Empty subject]. This does not disable the inventory operations record at the end of a commit message. The default is configured via ‘onyo.commit.auto-message’.

Default: False

Examples

Add a new user to a group:

$ onyo mkdir accounting/Bingo\ Bob/

Convert an Asset File into an Asset Directory:

$ onyo mkdir accounting/Bingo\ Bob/laptop_apple_macbook.oiw629