k10wl / hermes

0 stars 0 forks source link

Feat/templates #2

Closed k10wl closed 2 months ago

k10wl commented 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;

In this way we will remove magical words and group all by template functionality

k10wl commented 2 months ago

+1, if list was defined and list value was not provided - it should be read as % to list all templates

k10wl commented 2 months ago

nah, fuck it, good enough, not sure how it will be used. roll out