Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand cli to support kfp compiling and running #366

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

GeorgesLorre
Copy link
Collaborator

No description provided.

@GeorgesLorre
Copy link
Collaborator Author

Not super happy with the state of the CLI but we can revisit that later.

Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @GeorgesLorre!

"""Test that the compile command works with arguments."""
with tmp_path_factory.mktemp("temp") as fn:
args = argparse.Namespace(
local=True,
kubeflow=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make more sense to merge these options (especially if we have more in the future):

engine = self.parser.add_mutually_exclusive_group()
engine.add_argument('--local',
                    help='Run locally',
                    dest='engine',
                    action='store_const',
                    const='local')
engine.add_argument('--kfp',
                    help='Run on kfp',
                    dest='engine',
                    action='store_const',
                    const='kfp')

It's then available as args.engine with a value of either "local" or "kfp"

@GeorgesLorre GeorgesLorre merged commit 1be8de4 into main Aug 18, 2023
5 checks passed
@GeorgesLorre GeorgesLorre deleted the feature/kfp-cli branch August 18, 2023 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants