gitea-tea/cmd
Norwin df724b4006 Add tab completion for fish shell (#364)
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](5bb54ace57/fish.go (L160-L180))
![grafik](/attachments/b08541c9-0f37-4c70-a2e3-1ec9da15a430)

Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/364
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
2021-05-24 04:42:21 +08:00
..
flags Add more issue / pr creation params (#331) 2021-03-08 19:48:03 +08:00
issues Add more issue / pr creation params (#331) 2021-03-08 19:48:03 +08:00
labels Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
login Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
milestones Add tea issues --fields, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
organizations Add more command shorthands (#307) 2020-12-17 00:47:40 +08:00
pulls Add tea pr merge (#348) 2021-03-18 03:56:05 +08:00
releases Update Vendors (#337) 2021-03-05 18:06:25 +08:00
repos Add tea issues --fields, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
times Improve tea time (#319) 2020-12-23 12:58:36 +08:00
autocomplete.go Add tab completion for fish shell (#364) 2021-05-24 04:42:21 +08:00
categories.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
comment.go tea comment: handle piped stdin (#322) 2021-03-01 01:47:36 +08:00
issues.go Add tea comment and show comments of issues/pulls (#313) 2020-12-22 00:07:35 +08:00
labels.go Add missing flags to org & labels subcommands (#357) 2021-05-13 02:32:20 +08:00
login.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
logout.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
milestones.go Add tea issues --fields, allow printing labels (#312) 2020-12-21 23:41:07 +08:00
notifications.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
open.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
organizations.go Add missing flags to org & labels subcommands (#357) 2021-05-13 02:32:20 +08:00
pulls.go Add tea pr merge (#348) 2021-03-18 03:56:05 +08:00
releases.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
repos.go Proper help text & new README structure (#311) 2020-12-21 21:37:20 +08:00
times.go Improve tea time (#319) 2020-12-23 12:58:36 +08:00