Project

General

Profile

Actions

Refactor #33721

closed

Make template create/update commands use resolver

Added by Oleh Fedorenko about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

hammer template [create|update] command hides --template-kind[-id] options and provides --type option only, which has non-standard way of resolving template kind names. I suggest to refactor this place [1] to be more readable and consistent.

[1] - https://github.com/theforeman/hammer-cli-foreman/blob/3100ec821b8b8efa2ec8674d167968c12f82bbed/lib/hammer_cli_foreman/template.rb#L13-L25

Actions

Also available in: Atom PDF