-
Notifications
You must be signed in to change notification settings - Fork 5
/
fre.py
41 lines (36 loc) · 1.31 KB
/
fre.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""
Main host file for FRE-CLI program scripts
authored by Bennett.Chang@noaa.gov | bcc2761
NOAA | GFDL
2023-2024
principal click group for main/fre allows for subgroup functions to
be called via this script. I.e. 'fre' is the entry point
"""
import click
from .lazy_group import LazyGroup
@click.group(
cls = LazyGroup,
lazy_subcommands = {"pp": ".pp.frepp.ppCli",
"catalog": ".catalog.frecatalog.catalogCli",
"list": ".list.frelist.listCli",
"check": ".check.frecheck.checkCli",
"run": ".run.frerun.runCli",
"test": ".test.fretest.testCli",
"yamltools": ".yamltools.freyamltools.yamltoolsCli",
"make": ".make.fremake.makeCli",
"app": ".app.freapp.appCli",
"cmor": ".cmor.frecmor.cmorCli" },
help = click.style(
"'fre' is the main CLI click group that houses the other tool groups as lazy subcommands.",
fg='cyan')
)
@click.version_option(
package_name = "fre-cli",
message = click.style("%(package)s | %(version)s",
fg = (155,255,172) )
)
def fre():
''' entry point function to subgroup functions '''
pass
if __name__ == '__main__':
fre()