summaryrefslogtreecommitdiff
path: root/argvAutocomplete.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-16 16:23:08 -0500
committerJeff Carr <[email protected]>2025-08-16 21:50:40 -0500
commitedb3e23311b9cd667898e625b07f5dbeb43e30e3 (patch)
tree53da542d42f7b763c92b5622e7968b854ccbf7a6 /argvAutocomplete.go
parentde6b45ced2fec64bdd4eb1c7d90c13251d394fe8 (diff)
fixes to test plugins by os.Exec()v0.0.2
Diffstat (limited to 'argvAutocomplete.go')
-rw-r--r--argvAutocomplete.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/argvAutocomplete.go b/argvAutocomplete.go
index 9d60ceb..bbedb83 100644
--- a/argvAutocomplete.go
+++ b/argvAutocomplete.go
@@ -13,9 +13,6 @@ import (
handles shell autocomplete
*/
-// used for shell auto completion
-var ARGNAME string = "wit-test" // todo: get this from $0 ?
-
func (args) doBashAuto() {
argv.doBashHelp()
switch argv.BashAuto[0] {
@@ -68,6 +65,8 @@ func (args) doBash() {
fmt.Println("")
fmt.Println("# todo: add this to go-arg as a 'hidden' go-arg option --bash")
fmt.Println("#")
+ fmt.Println("# Put the below in the file: ~/.local/share/bash-completion/completions/" + ARGNAME)
+ fmt.Println("#")
fmt.Println("# todo: make this output work/parse with:")
fmt.Println("# complete -C " + ARGNAME + " --bash go")
fmt.Println("")