When using git, we can press the `tab` to complete the subcommand. Do you have any ideas about how to implement this function?