def build(self, root, schema):
if schema.get("<STR_LIT>") and schema["<STR_LIT>"]:<EOL><INDENT>for subcmd, childSchema in schema["<STR_LIT>"].items():<EOL><INDENT>child = CommandTree(node=subcmd)<EOL>child = self.build(child, childSchema)<EOL>root.children.append(child)<EOL><DEDENT><DEDENT>root.help = schema.get("<STR_LIT>")<EOL>for name, desc in schema.get("<STR_LIT>").items():<EOL><INDENT>if root.node == "<STR_LIT>":  <EOL><INDENT>self.globalFlags.append(Option(name, desc["<STR_LIT>"]))<EOL><DEDENT>root.localFlags.append(Option(name, desc["<STR_LIT>"]))<EOL><DEDENT>for arg in schema.get("<STR_LIT:args>"):<EOL><INDENT>node = CommandTree(node=arg)<EOL>root.children.append(node)<EOL><DEDENT>return root<EOL>
Build the syntax tree for kubectl command line