diff options
Diffstat (limited to 'bash.orig.go')
| -rw-r--r-- | bash.orig.go | 8 |
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) } |
