diff options
Diffstat (limited to 'parseArgv.go')
| -rw-r--r-- | parseArgv.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/parseArgv.go b/parseArgv.go index 1fdaf5f..a1cd20e 100644 --- a/parseArgv.go +++ b/parseArgv.go @@ -29,11 +29,6 @@ func parseArgv(argname string) *Auto { } } - // "complete -C /usr/bin/argv forge" bash ENV values: - // * `COMP_LINE`: A string containing the entire current command line (forge first second third forth ). This is what you are looking for. - // * `COMP_POINT`: A number indicating the cursor's position (index) within the COMP_LINE. - // * `COMP_WORDS`: An array in Bash (seen differently by Go) containing each individual word on the command line. - // * `COMP_CWORD`: A number indicating the index of the word the cursor is currently on within the COMP_WORDS array. if len(os.Args) > 1 && os.Args[1] == pb.Argname { pb.IsAuto = true parts := strings.Split(os.Getenv("COMP_LINE"), " ") |
