fast-vr-44972
12/11/2023, 6:32 PMcli
to add extra options just for our internal usage?
We have some stuff like what metaflow deployment the job should run on and currently we are hiding all cli
options you see and only allowing the env
and username
since we call it inside subprocess
. I was thinking if there was some function that I could import which has more or less all the expected arguments I can further add our options on top of it.
python flow_name.py argo-workflows create --help
dry-beach-38304
12/11/2023, 8:59 PMargo-workflows create
or do you want to add a completely separate command like my-argo-workflows
?fast-vr-44972
12/12/2023, 10:03 AMargo-workflows create
python deploy_flow.py --env <prd|stg|dev>
dry-beach-38304
12/12/2023, 10:37 AMdry-beach-38304
12/12/2023, 10:37 AMdry-beach-38304
12/12/2023, 5:13 PMdry-beach-38304
12/12/2023, 5:13 PMCLIS_DESC
in this file: https://github.com/Netflix/metaflow-extensions-template/blob/master/metaflow_extensions/org/plugins/mfextinit_org.pydry-beach-38304
12/12/2023, 5:15 PMCLIS_DESC = [("mycli", ".mycli.mycli_cli.cli")]
to add something to do myflow.py mycli …
dry-beach-38304
12/12/2023, 5:16 PMplugins
folder there a file like mycli/mycli_cli.py
and inside that have something like:
@click.group()
def cli():
pass
@cli.group(help="Commands related to my awesome CLI")
def mycli():
pass
dry-beach-38304
12/12/2023, 5:17 PMdry-beach-38304
12/12/2023, 5:18 PMdry-beach-38304
12/12/2023, 5:18 PMdry-beach-38304
12/12/2023, 5:18 PMdry-beach-38304
12/12/2023, 5:19 PM