Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

onyo new -t works for templates, and yaml outside of onyo, but not normal assets #775

@TobiasKadelka

Description

@TobiasKadelka

The normal use-case of onyo new -t is to give it the name of a template in the dir .onyo/templates/.

On the other hand, onyo new -t does error if used on a "normal" asset in the inventory, e.g.:

❱ onyo new -t groups/<path to asset> -d groups/<user> --edit
ERROR: Template groups/<path to asset> does not exist.

However, it is possible to use onyo new -t <yaml outside of onyo>:
onyo new -t ~/<path to asset> -d groups/<user> --edit

This leads to the awkward situation, that I can use onyo new -t on any type of asset, but only if I before copy it to a location outside of the inventory. I think this is weird, and onyo new -t should allow to get a normal asset and use this as the template (like onyo new --clone already allows, too).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions