Make completion depth adjustable
When running widget -- --completion you can't control the depth variable.
Currently it's set to 3 by default and you cant change it using the CLI.
Hi @TomerBG2, What is your use case for wanting to adjust the depth?
Hi @dbieber , When using fire (with entry point) on an object consisting of a lot of sub-objects, the generated bash completion stops at the depth of 3. So lets say I have the following:
A
B
C
D
E
get_x()
set_x(val)
Currently you only get tab completion until the C object, after that you have press enter and see what commands are available. I can think of two ways to solve this issue, using the interactive shell but this way it's not an entry point script anymore, or making the depth variable configurable upon running the --completion option.
I've opened a pull request, https://github.com/google/python-fire/pull/267
Hi @dbieber!
Any updates on this issue? Thanks! :)
Hello @dbieber, is there any chance to merge https://github.com/google/python-fire/pull/267 soon? Thanks!
@dbieber Any updates on this?