Louis DeLosSantos

Results 303 comments of Louis DeLosSantos

@dearchap Here is a repo with a very lean reproduction: https://github.com/ldelossa/urfacecli_test Just ``` go build -o main . source ./main_autocomplete ``` And try to perform autocompletion for the flag hanging...

Very interesting! Okay thank you for confirming this is an issue locally. I always invoke with ./main. But now, let me enter a zsh with absolute minimum config and see...

Okay @dearchap So I am on zsh 5.9 and this does not work. Here is an example on my system: https://github.com/urfave/cli/assets/5642902/ff5efe15-5277-4a03-9585-cb4e87874076 And here is the script: ``` 03:44:53PM 🖳 zsh...

Tried the same thing in a zsh 5.8 container: ``` 03:50:38PM 🖳 docker run -v $(pwd):/src -it --rm zshusers/zsh:5.8 6befea125665# cd /src 6befea125665# ls -la total 4444 drwxr-xr-x. 1 1000...

@dearchap I'm trying to get completion for the **flag** hanging off 'subcommand'. For instance if I do this: ``` ./main command subcommand - ``` I expect to see completion suggestions...

No problem @dearchap The output was very large so put it in a pastebin: https://pastebin.com/Y84QDy2h

@dearchap no problem, here's latest: https://pastebin.com/jtEf28Xt

We seem to be going into `printCommandSuggestions` instead of `printFlagSuggestions` when we are in the `DefaultCompleteWithFlags`

No problem, looking forward to seeing it fixed :-D. Thanks for working with me on explaining this situation.

@dearchap If i comment out: ``` if cmd != nil && cmd.flagSet != nil && cmd.parent != nil { args = cmd.Args().Slice() tracef("running default complete with flags[%v] on command %[1]q",...