feat: auto-complete app and recipe names #89
Merged
decentral1se
merged 3 commits from 2021-09-08 12:16:42 +00:00
knoflook/abra:main into main
Labels
Clear labels
bug
build
ci/cd
critical fix
design
documentation
duplicate
easy-first-issue
enhancement
help wanted
i10n
i18n
installer
invalid
question
release
release-candidate
security
tech-debt
test
wontfix
Something is not working
go build related issues
Building things with CI/CD
https://docs.coopcloud.tech/federation/resolutions/passed/010/
UI/UX
Documenting all the things
This issue or pull request already exists
Something for new people to get stuck into. We hope it's easy!
New feature
Need some help
Everything to do with localisation
Everything to do with internationalisation
Everything to do with the install script.
Something is wrong
More information is needed
Release management
Related to the new release candidate
Security related
Unit/integration testing
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/abra#89
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
@decentral1se in #83
here it is. I only set it for a couple commands and still would like to discuss #87 but yeah, app/recipe name autocompletion is there!
Wowza 🥇
@@ -36,2 +38,4 @@return nil},BashComplete: func(c *cli.Context) {appNames, err := config.GetDeployedApps()Given coop-cloud/abra#87 (comment) I guess we can just do
config.GetAppsNamesand call it a day?@@ -177,6 +177,46 @@ func GetApps(appFiles AppFiles) ([]App, error) {return apps, nil}func GetAppsNames() ([]string, error) {Maybe a nitpick but
GetAppNamesis easier to say 😀 (ignore ofc if you don't mind it)@@ -180,0 +180,4 @@func GetAppsNames() ([]string, error) {appFiles, err := LoadAppFiles("")if err != nil {return nil, errreturn []string{}, errto pass an empty list and avoid nil errors somewhere else?@@ -180,0 +195,4 @@return appNames, nil}func GetDeployedApps() ([]string, error) {Yeah I guess we don't need this now but maybe keep it?
idk, could also just end up lurking there without being used 🤔
It's simple enought to rewrite so might as well get rid of it