onyo edit

Open ASSETs using an editor.

When multiple ASSETs are given, they are opened sequentially.

The editor is selected by (in order):

  • onyo.core.editor configuration option

  • core.editor configuration option (git)

  • EDITOR environment variable

  • nano (as a final fallback)

The contents of all edited ASSETs are checked for validity before committing. If problems are found, a prompt is offered to either reopen the editor or discard the changes.

usage: onyo edit [-h] [-m MESSAGE] ASSET [ASSET ...]

Positional Arguments

ASSET

Paths of assets to edit.

Named Arguments

-m, --message

Use the given MESSAGE as the commit message (rather than the default). If multiple --message options are given, their values are concatenated as separate paragraphs.

Examples

Edit an asset (file or directory):

$ onyo edit accounting/Bingo\ Bob/laptop_lenovo_T490s.abc123
<spawns editor>