pulumi/cmd/get.go
joeduffy 536065bd57 Add a mu get command
This adds a `mu get` command for downloading Mu Stacks.  It isn't really
implemented yet, but puts a stake in the ground on how we intend this to work.
2016-11-19 16:44:25 -08:00

34 lines
905 B
Go

// Copyright 2016 Marapongo, Inc. All rights reserved.
package cmd
import (
"github.com/spf13/cobra"
"github.com/marapongo/mu/pkg/util"
)
func newGetCmd() *cobra.Command {
var global bool
var save bool
var cmd = &cobra.Command{
Use: "get [deps]",
Short: "Download a Mu Stack",
Long: "Get downloads a Mu Stack by name. If run without arguments, get will attempt\n" +
"to download dependencies referenced by the current Stack. Otherwise, if one\n" +
"or more specific dependencies are provided, only those will be downloaded.",
Run: func(cmd *cobra.Command, args []string) {
util.FailM("Get command is not yet implemented")
},
}
cmd.PersistentFlags().BoolVarP(
&global, "global", "g", false,
"Install to a shared location on this machine")
cmd.PersistentFlags().BoolVarP(
&save, "save", "s", false,
"Save new dependencies in the current Mu Stack")
return cmd
}