fn generate_cmd_tree(parent: &mut PrefixNode, cmd: &Command) {
        let mut node = PrefixNode::new(cmd);

        for cmd in &cmd.subcommands {
            PrefixCompleter::generate_cmd_tree(&mut node, cmd);
        }

        debug!("prefix {} added", node.name);
        parent.add_children(node);
    }
/// Generate the command tree by cmd and parent
Generate the command tree by cmd and parent
Generate the command tree by cmd and parent
fn generate_cmd_tree(parent: &mut PrefixNode, cmd: &Command) {
        let mut node = PrefixNode::new(cmd);
        for cmd in &cmd.subcommands {
            PrefixCompleter::generate_cmd_tree(&mut node, cmd);
        }
        debug!("prefix {} added", node.name);
        parent.add_children(node);
    }
fn generate_cmd_tree ( parent : & mut PrefixNode , cmd : & Command ) { let mut node = PrefixNode :: new ( cmd ) ; for cmd in & cmd . subcommands { PrefixCompleter :: generate_cmd_tree ( & mut node , cmd ) ; } debug ! ( " " node name ) ; parent . add_children ( node ) ; }
Generate the command tree by cmd and parent
Generate the command tree by cmd and parent
parent
&mut PrefixNode
cmd
&Command
parent
&mut PrefixNode
cmd
&Command