summaryrefslogtreecommitdiff
path: root/bash.orig.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 04:56:06 -0500
committerJeff Carr <[email protected]>2025-10-07 04:56:06 -0500
commit46773f4290adb32f0a51b8c8fb79816e3f807103 (patch)
tree112be9edcefb3c7b6826930efc3bf3fdcc43d3e3 /bash.orig.go
parentacd07ddd1ab5a758d239fa57fca1931d21da1fd7 (diff)
move stuff to fhelpv0.0.24
Diffstat (limited to 'bash.orig.go')
-rw-r--r--bash.orig.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/bash.orig.go b/bash.orig.go
index ecd6bdd..7d431cc 100644
--- a/bash.orig.go
+++ b/bash.orig.go
@@ -8,7 +8,7 @@ import (
"strings"
"go.wit.com/dev/alexflint/arg"
- "go.wit.com/lib/gui/shell"
+ "go.wit.com/lib/config"
)
/*
@@ -40,7 +40,7 @@ type AutoArgs struct {
// print out auto complete debugging info
func (pb *Auto) PrintDebug() {
dur := pb.Duration.AsDuration()
- pb.Debugf("AUTOCOMPLETE: arg0='%s' arg1='%s' partial='%s' cmd='%s' age=%s argv=%v\n", pb.Arg0, pb.Arg1, pb.Partial, pb.Cmd, shell.FormatDuration(dur), pb.Argv)
+ pb.Debugf("AUTOCOMPLETE: arg0='%s' arg1='%s' partial='%s' cmd='%s' age=%s argv=%v\n", pb.Arg0, pb.Arg1, pb.Partial, pb.Cmd, config.FormatDuration(dur), pb.Argv)
}
func (pb *Auto) WriteHelp() {
@@ -93,12 +93,12 @@ func doBash(argname string) {
os.Exit(0)
}
filename := filepath.Join(homeDir, ".local/share/bash-completion/completions", argname)
- if shell.Exists(filename) {
+ if config.Exists(filename) {
log.Println(filename, "file already exists")
os.Exit(0)
}
basedir, _ := filepath.Split(filename)
- if !shell.IsDir(basedir) {
+ if !config.IsDir(basedir) {
os.MkdirAll(basedir, os.ModePerm)
}