def main():
argparser = argparse.ArgumentParser(description=__doc__)<EOL>argparser.add_argument('<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>argparser.add_argument('<STR_LIT>', action='<STR_LIT:store_true>',<EOL>help='<STR_LIT>')<EOL>argparser.add_argument('<STR_LIT>', action='<STR_LIT:store_true>',<EOL>help='<STR_LIT>')<EOL>argparser.add_argument('<STR_LIT>', default=None,<EOL>help='<STR_LIT>')<EOL>argparser.add_argument('<STR_LIT>', default='<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>argparser.add_argument('<STR_LIT>', default=None,<EOL>help='<STR_LIT>')<EOL>args = argparser.parse_args()<EOL>with open('<STR_LIT>') as f:<EOL><INDENT>config = yaml.load(f)<EOL><DEDENT>for chart in config['<STR_LIT>']:<EOL><INDENT>chart_paths = ['<STR_LIT:.>'] + list(chart.get('<STR_LIT>', []))<EOL>version = args.tag<EOL>if version:<EOL><INDENT>version = version.lstrip('<STR_LIT:v>')<EOL><DEDENT>chart_version = build_chart(chart['<STR_LIT:name>'], paths=chart_paths, version=version)<EOL>if '<STR_LIT>' in chart:<EOL><INDENT>image_prefix = args.image_prefix if args.image_prefix is not None else chart['<STR_LIT>']<EOL>value_mods = build_images(<EOL>prefix=image_prefix,<EOL>images=chart['<STR_LIT>'],<EOL>tag=args.tag,<EOL>commit_range=args.commit_range,<EOL>push=args.push,<EOL>chart_version=chart_version.split('<STR_LIT:->', <NUM_LIT:1>)[<NUM_LIT:0>],<EOL>)<EOL>build_values(chart['<STR_LIT:name>'], value_mods)<EOL><DEDENT>if args.publish_chart:<EOL><INDENT>publish_pages(chart['<STR_LIT:name>'],<EOL>paths=chart_paths,<EOL>git_repo=chart['<STR_LIT>']['<STR_LIT>'],<EOL>published_repo=chart['<STR_LIT>']['<STR_LIT>'],<EOL>extra_message=args.extra_message,<EOL>)<EOL><DEDENT><DEDENT>
Run chartpress