Closed TobiasKadelka closed 3 months ago
Part of this is resolved now that #603 is merged.
IMO, directory
should not be an alternative to path
. It should be the parent directory of the asset (which is how it is used in onyo new
).
The proposal is for directory
to be promoted form a Reserved Key (only used by new
) to a Pseudo Key that's queryable like any other key.
onyo new --keys directory=shelf
is equivalent toonyo new --path shelf
onyo get --match directory=shelf
is not equivalent toonyo get --path shelf
-> All commands should interprete the usage of a key "directory" the same.
Here a scenario where I find the behavior un-intuitive and wrong: