def execute_command(parser, config, ext_classes):
res = <NUM_LIT:0><EOL>cmd = config.get('<STR_LIT>')<EOL>get_private_folder = config.get('<STR_LIT>', False)<EOL>if cmd == '<STR_LIT>':<EOL><INDENT>parser.print_help()<EOL><DEDENT>elif cmd == '<STR_LIT>' or get_private_folder:  <EOL><INDENT>app = Application(ext_classes)<EOL>try:<EOL><INDENT>app.parse_config(config)<EOL>if get_private_folder:<EOL><INDENT>print(app.private_folder)<EOL>return res<EOL><DEDENT>res = app.run()<EOL><DEDENT>except HotdocException:<EOL><INDENT>res = len(Logger.get_issues())<EOL><DEDENT>except Exception:  <EOL><INDENT>print("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>traceback.print_exc()<EOL>res = <NUM_LIT:1><EOL><DEDENT>finally:<EOL><INDENT>app.finalize()<EOL><DEDENT><DEDENT>elif cmd == '<STR_LIT>':<EOL><INDENT>try:<EOL><INDENT>create_default_layout(config)<EOL><DEDENT>except HotdocException:<EOL><INDENT>res = <NUM_LIT:1><EOL><DEDENT><DEDENT>elif cmd == '<STR_LIT>':<EOL><INDENT>config.dump(conf_file=config.get('<STR_LIT>', None))<EOL><DEDENT>elif cmd is None:<EOL><INDENT>if config.get('<STR_LIT:version>'):<EOL><INDENT>print(VERSION)<EOL><DEDENT>elif config.get('<STR_LIT>'):<EOL><INDENT>here = os.path.dirname(__file__)<EOL>path = os.path.join(here, '<STR_LIT>', '<STR_LIT>')<EOL>print(os.path.abspath(path))<EOL><DEDENT>elif config.get('<STR_LIT>'):<EOL><INDENT>key = config.get('<STR_LIT>')<EOL>path = config.get_path(key, rel_to_cwd=True)<EOL>if path is not None:<EOL><INDENT>print(path)<EOL><DEDENT><DEDENT>elif config.get('<STR_LIT>'):<EOL><INDENT>key = config.get('<STR_LIT>')<EOL>value = config.get(key, None)<EOL>if value is not None:<EOL><INDENT>print(value)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>parser.print_usage()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>parser.print_usage()<EOL><DEDENT>return res<EOL>
Banana banana