-
|
I want to define a spec like: name: command
flags:
--flag: The flag to complete
completion:
flag:
flag: ["$file ||| $chdir(~/.local/share/command)"]But the Is there an easy way to solve it? |
Beta Was this translation helpful? Give feedback.
Answered by
rsteube
Jun 28, 2025
Replies: 1 comment
-
|
Specs still have some rough edges so a couple of edge cases might not work. This seems to be fine though: name: chdir
flags:
--flag=: The flag to complete
completion:
flag:
flag: ["$files ||| $chdir(${HOME})"]
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SuniRein
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specs still have some rough edges so a couple of edge cases might not work.
This seems to be fine though:
=flag suffix to signal that it takes a value$filesplural${ENV_NAME}curly braces so that it isn't mistaken as macro