Skip to content

Commit 0417792

Browse files
rubionicaramprice
authored andcommitted
fix: enable file autocompletion for add-blob and vendor-package commands
- Change AddBlobArgs from noFile to listFiles completion - Change VendorPackageArgs from noFile to listFiles completion - Allows filesystem autocomplete when specifying file paths Fixes #695
1 parent 0d8873f commit 0417792

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/completion/complete_functions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewCompleteFunctionsMap(logger boshlog.Logger, directorQuery DirectorQueryI
2929
"--var-file": c.listFiles,
3030
"--vars-file": c.listFiles,
3131
"--vars-store": c.listFiles,
32-
reflect.TypeOf(opts.AddBlobArgs{}).Name(): c.noFile,
32+
reflect.TypeOf(opts.AddBlobArgs{}).Name(): c.listFiles,
3333
reflect.TypeOf(opts.AliasEnvArgs{}).Name(): c.listEnvAliases,
3434
reflect.TypeOf(opts.AllOrInstanceGroupOrInstanceSlugArgs{}).Name(): c.listInstanceGroupsOrSlugs,
3535
reflect.TypeOf(opts.AttachDiskArgs{}).Name(): c.listDiskCIDs,
@@ -75,7 +75,7 @@ func NewCompleteFunctionsMap(logger boshlog.Logger, directorQuery DirectorQueryI
7575
reflect.TypeOf(opts.UpdateRuntimeConfigArgs{}).Name(): c.listFiles,
7676
reflect.TypeOf(opts.UploadReleaseArgs{}).Name(): c.listFiles,
7777
reflect.TypeOf(opts.UploadStemcellArgs{}).Name(): c.listFiles,
78-
reflect.TypeOf(opts.VendorPackageArgs{}).Name(): c.noFile,
78+
reflect.TypeOf(opts.VendorPackageArgs{}).Name(): c.listFiles,
7979
}
8080
return cfm
8181
}

0 commit comments

Comments
 (0)