onyo init
Initialize an Onyo repository.
The current working directory will be initialized if neither DIR nor the
onyo -C DIR flag are specified. If the target directory does not exist,
it will be created.
Initialization steps are:
create the target directory (if it does not exist)
initialize as a git repository (if it is not one already)
create the
.onyo/directory, populate its contents, and commit
Init-ing non-empty directories and git repositories is allowed. Only the
.onyo directory will be committed. All other contents will be left in
their state.
Repeatedly init-ing a repository will not alter the contents, and will exit with an error.
usage: onyo init [-h] [DIR]
Positional Arguments
- DIR
Directory to initialize as an Onyo repository.
Examples
Initialize the current working directory as an Onyo repository:
$ onyo init
Create a new directory and initialize it as an Onyo repository:
$ onyo init new_inventory_directory