Closed k10wl closed 2 months ago
I hate how flags look and behave, rework before merge.
Consider following: hermes -tmpl "name" - invokes template; hermes -tmpl -list "%" - shows all existing templates; hermes -tmpl "name" -edit - starts editing, opens existing command in editor; hermes -tmpl "name" -delete - deletes template with given name; hermes -tmpl -upsert "optional content" - to start upsertion. If not provided - opens in os editor;
hermes -tmpl "name"
hermes -tmpl -list "%"
hermes -tmpl "name" -edit
hermes -tmpl "name" -delete
hermes -tmpl -upsert "optional content"
In this way we will remove magical words and group all by template functionality
+1, if list was defined and list value was not provided - it should be read as % to list all templates
%
nah, fuck it, good enough, not sure how it will be used. roll out
I hate how flags look and behave, rework before merge.
Consider following:
hermes -tmpl "name"
- invokes template;hermes -tmpl -list "%"
- shows all existing templates;hermes -tmpl "name" -edit
- starts editing, opens existing command in editor;hermes -tmpl "name" -delete
- deletes template with given name;hermes -tmpl -upsert "optional content"
- to start upsertion. If not provided - opens in os editor;In this way we will remove magical words and group all by template functionality