onyo config

Set, query, and unset Onyo repository configuration options.

These options are stored in .onyo/config, which is in the Onyo repository and thus shared with all other consumers of the repository.

To set configuration options locally (and not commit them to the Onyo repository), use git config instead.

This command is a wrapper around git config. All of its options and capabilities are available with the exception of --system, --global, --local, --worktree, and --file. Please see the git-config manpage for more information about usage.

usage: onyo config [-h] ARGS [ARGS ...]

Positional Arguments

ARGS

Configuration arguments to operate on .onyo/config.

Configuration Options

onyo.assets.name-format:

The format for asset names on the filesystem. Default: “{type}_{make}_{model}.{serial}”

onyo.core.editor:

The command to run subcommands such as edit and new --edit. If unset, it will fallback to git’s core.editor, then the environmental variable EDITOR, and lastly nano. Default: unset

onyo.history.interactive:

The command to run for onyo history. Default: “tig –follow”

onyo.history.non-interactive:

The command to run for onyo history --non-interactive. Default: “git –no-pager log –follow”

onyo.new.template:

The default template to use with onyo new. Default: “empty”

onyo.repo.version:

The Onyo repository version.

Examples

Get the tool used for interactive history:

$ onyo config --get onyo.history.interactive

Set the default template used by onyo new:

$ onyo config onyo.new.template "generic.asset"