#!/usr/bin/env python """Flow's exec. Run it with --help for usage.""" from feed_ingestion.flows.spotify_charts import config from feed_ingestion.util import exec_utils class FlowExec(exec_utils.FlowExecDaily): """Flow's exec.""" flow_name = config.feed_name def __arguments(self): self.parser.add_arg( name='chart', env_var='CHART', context_key='chart', required=True, choices=config.charts, ) exec_utils.add_arg_bool( self.parser, name='build_charts', env_var='BUILD_CHARTS', context_key='build_charts', ) def add_args(self): """Add args.""" self.__arguments() super().add_args() if __name__ == '__main__': FlowExec().main()