Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

add multistep support for the cli - WIP - DO NOT MERGE#2949

Merged
alexsomesan merged 2 commits intocoreos:ut2-integrationfrom
enxebre:cli-multistep-workflow
Feb 15, 2018
Merged

add multistep support for the cli - WIP - DO NOT MERGE#2949
alexsomesan merged 2 commits intocoreos:ut2-integrationfrom
enxebre:cli-multistep-workflow

Conversation

@enxebre
Copy link
Contributor

@enxebre enxebre commented Feb 14, 2018

Add support for deploying using a cluster the cli:
cli install --config=terraform.tfvariables
cluster-name and platform are currently hardcoded

@coreosbot
Copy link

Can one of the admins verify this patch?

clusterConfigFlag = clusterInstallCommand.Flag("config", "Cluster specification file").Required().ExistingFile()
dryRunFlag = kingpin.Flag("dry-run", "Just pretend, but don't do anything").Bool()
clusterInstallCommand = kingpin.Command("install", "Create a new Tectonic cluster")
clusterFullInstallCommand = clusterInstallCommand.Command("full", "Create a new Tectonic cluster").Default()
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be the default path. No need to explicitly have a sub-command.
#lessismore #minimalism

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By adding full as default the user can just run cli install --config otherwise the same command complains about it expecting a subcommand. Not sure yet how to tell kingpin that the subcommand is not mandatory

@alexsomesan alexsomesan merged commit 6c7ffed into coreos:ut2-integration Feb 15, 2018
enxebre added a commit to enxebre/tectonic-installer that referenced this pull request Feb 15, 2018
* add multistep support for the cli

* cli: Fix lint
alexsomesan pushed a commit to alexsomesan/tectonic-installer that referenced this pull request Feb 21, 2018
* add multistep support for the cli

* cli: Fix lint
mxinden pushed a commit that referenced this pull request Feb 27, 2018
* add multistep support for the cli

* cli: Fix lint
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants