def main(args=None): args = get_args(args=args) old_dir = os.getcwd() os.chdir(os.path.dirname(args.compose_file.name)) config = include(read_config(args.compose_file), build_fetch_config(args)) write_config(config, args.output) os.chdir(old_dir)
def main(args=None): args = get_args(args=args) config = include(read_config(args.compose_file), build_fetch_config(args)) write_config(config, args.output)
def main(args=None): args = get_args(args=args) config = add_namespace(read_config(args.compose_file), args.namespace) write_config(config, args.output)