onyo config

Set, query, and unset Onyo repository configuration options.

These options are stored in .onyo/config, which is tracked by git and shared with all other users of the Onyo 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.

Onyo configuration options:

  • onyo.assets.name-format: The format for asset names on the filesystem. (default: “{type}_{make}_{model}.{serial}”)

  • onyo.core.editor: The editor to use for subcommands such as edit and new. If unset, it will fallback to core.editor of git, then the environmental variable EDITOR and lastly nano. (default: unset)

  • onyo.history.interactive: The interactive command to use for onyo history. (default: “tig –follow”)

  • onyo.history.non-interactive: The non-interactive command for running 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.

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

Positional Arguments

ARGS

Configuration arguments to operate on .onyo/config.

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"