Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Add flags for create command #135

Merged
merged 1 commit into from Jan 23, 2016

Conversation

vdemeester
Copy link
Collaborator

This adds the following flags (and support) for the create command :

  • force-recreate
  • no-recreate

The --no-build flag is shared with the up command and will be worked on in another PR 馃悪.

  • Needs integration tests

馃惛

Signed-off-by: Vincent Demeester vincent@sbr.pm

- force-recreate
- no-recreate

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
@@ -239,7 +249,7 @@ func Populate(context *project.Context, c *cli.Context) {

if c.Command.Name == "logs" {
context.Log = true
} else if c.Command.Name == "up" {
} else if c.Command.Name == "up" || c.Command.Name == "create" {
Copy link
Contributor

Choose a reason for hiding this comment

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

We really need to fix this context object. It doesn't make sense to have a single context for every command.

I think we should be using something like https://github.com/spf13/cobra to handle subcommands.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I'm working on that, but will be another PR..

Copy link

Choose a reason for hiding this comment

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

also isn't a switch better here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants