mipi
mipi
Hi @marckhouzam, thanks for the quick response. Now I was able to debug with `__complete` (btw: I had to do `crema __complete update r ` instead of `crema __complete update...
OK, I now used `cobra.CompError` instead of a print statement, but the output is still strange: 1. `crema update r`: Custom completion function not called (i.e., no message to stderr),...
How to I generate and load the completion scripts? 1. I defined the sub command `gencomp` which executes ` cmd.Root().GenZshCompletion(os.Stdout)` 2. I execute that sub command and pipe the result...
I did `crema update r`, and that's the content of `/tmp/debug.txt`: ========= starting completion logic ========== CURRENT: 3, words[*]: crema update r Truncated words[*]: crema update r, lastParam: r, lastChar:...
`crema update r` leads to `crema update README.md`. `README.md` is the only file in the directory that starts with 'r'.
BTW, that's the content of `/tmp/debug.txt` for `crema update a` (there are also valid values starting with 'a' - the only such valid value is 'archi3linux'): ========= starting completion logic...
@marckhouzam: Thanks for checking. I will investigate further.
Did it now the same way and it worked :-) However, I'd expect that holo-users-groups creates the homedir if it's not existing, esp. if it's specified explicitely in the toml...
I think I could do that. After looking into the coding, I believe that adding that feature is not a big deal. I still did not get how the test...