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 configinstead.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 aseditandnew. If unset, it will fallback tocore.editorofgit, then the environmental variableEDITORand lastlynano. (default: unset)
onyo.history.interactive: The interactive command to use foronyo history. (default: “tig –follow”)
onyo.history.non-interactive: The non-interactive command for runningonyo history --non-interactive. (default: “git –no-pager log –follow”)
onyo.new.template: The default template to use withonyo 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"