/// Constructor, take the command tree as input
Constructor, take the command tree as input
Constructor take the command tree as input
pub fn new(cmd_tree: &Command) -> Self {
        let mut prefix_tree = PrefixNode::new(cmd_tree);
        for cmd in &cmd_tree.subcommands {
            PrefixCompleter::generate_cmd_tree(&mut prefix_tree, cmd);
        }
        Self { tree: prefix_tree }
    }
pub fn new ( cmd_tree : & Command ) -> Self { let mut prefix_tree = PrefixNode :: new ( cmd_tree ) ; for cmd in & cmd_tree . subcommands { PrefixCompleter :: generate_cmd_tree ( & mut prefix_tree , cmd ) ; } Self { tree : prefix_tree } }
Constructor, take the command tree as input
Constructor take the command tree as input
cmd_tree
&Command