mirror of
https://gitea.com/gitea/tea.git
synced 2024-12-22 09:05:06 +01:00
df724b4006
as title, fixes #361
Handling of fish shell is different in urfave/cli; urfave/cli provides a generator for the shell script needed (probably because the fish `completion` syntax isn't flexible enough to let the application handle the completion at runtime? idk)
This means that the fish completion can become out of sync with the tea binary.
If we want to account for that, on each application run we need to
- check if `~/.config/fish/conf.d/tea_completion.fish` exists; if so
- check if the tea version that wrote it is the currently running version
- if not, rewrite the file.
Not sure this is worth the complexity & cost
It generates a completion that also suggests file names, which looks kinda messy: Didn't find a way around this, but [there may be a way](
|
||
---|---|---|
.. | ||
flags | ||
issues | ||
labels | ||
login | ||
milestones | ||
organizations | ||
pulls | ||
releases | ||
repos | ||
times | ||
autocomplete.go | ||
categories.go | ||
comment.go | ||
issues.go | ||
labels.go | ||
login.go | ||
logout.go | ||
milestones.go | ||
notifications.go | ||
open.go | ||
organizations.go | ||
pulls.go | ||
releases.go | ||
repos.go | ||
times.go |