From b116ad8c7cc242826f94a7b92f5c778bca2177c4 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 30 Jul 2024 12:24:47 -0400 Subject: [PATCH] Update frecatalog.py intakebuilder --> catalogbuilder edits. also delete some no-longer relevant commented out code, add doc string to click group entry point --- fre/catalog/frecatalog.py | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/fre/catalog/frecatalog.py b/fre/catalog/frecatalog.py index 1a3af27e..c395a4bb 100644 --- a/fre/catalog/frecatalog.py +++ b/fre/catalog/frecatalog.py @@ -1,37 +1,13 @@ import click -from scripts import gen_intake_gfdl -from scripts import test_catalog +import catalogbuilder +from catalogbuilder.scripts import gen_intake_gfdl +from catalogbuilder.scripts import test_catalog @click.group(help=click.style(" - access fre catalog subcommands", fg=(64,94,213))) def catalogCli(): + ''' entry point for click into fre catalog cli calls ''' pass -#@catalogCli.command() -#@click.option('-i', -# '--input_path', -# required = True, -# nargs = 1) -#@click.option('-o', -# '--output_path', -# required = True, -# nargs = 1) -#@click.option('--filter_realm', -# nargs = 1) -#@click.option('--filter_freq', -# nargs = 1) -#@click.option('--filter_chunk', -# nargs = 1) -#@click.option('--overwrite', -# is_flag = True, -# default = False) -#@click.option('--append', -# is_flag = True, -# default = False) -#@click.pass_context -#def build(context, input_path, output_path, filter_realm, filter_freq, filter_chunk, -# overwrite,append): -# """ - Execute fre catalog build """ -# context.forward(build_script) @catalogCli.command() #TODO arguments dont have help message. So consider changing arguments to options?