summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 05:20:36 -0500
committerJeff Carr <[email protected]>2025-10-07 05:20:36 -0500
commit5398d895e3a841c81df7079eb3a3c9a4a9904829 (patch)
tree062037cc0bef0e3a457f72067dcc4b138cc4a779
parent46d67313cff2fc06975a53059f38555bc04d820e (diff)
maybe no shell dep nowv0.0.30
-rw-r--r--Makefile1
-rw-r--r--bash.go4
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9799e7e..c01ca33 100644
--- a/Makefile
+++ b/Makefile
@@ -15,3 +15,4 @@ goimports:
clean:
rm -f *.pb.go
-rm -f go.*
+ go-mod-clean purge
diff --git a/bash.go b/bash.go
index fd5ee7e..1ff60bb 100644
--- a/bash.go
+++ b/bash.go
@@ -7,14 +7,14 @@ import (
"os"
"path/filepath"
- "go.wit.com/lib/gui/shell"
+ "go.wit.com/lib/config"
)
// makes a bash autocomplete file for your command
func DoBash(argname string) {
if homeDir, err := os.UserHomeDir(); err == nil {
filename := filepath.Join(homeDir, ".local/share/bash-completion/completions", argname)
- if shell.Exists(filename) {
+ if config.Exists(filename) {
} else {
if f, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644); err == nil {
f.Write([]byte(MakeBashCompletionText(argname)))