Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opencurve/curveadm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 717b06c7d51f7651a4ddc12d7cc388660dc576b5
Choose a base ref
..
head repository: opencurve/curveadm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f4dfaed2b87bbcb30a9ab1676fb7588db1292340
Choose a head ref
Showing with 2 additions and 3 deletions.
  1. +2 −3 cli/command/cluster/add.go
5 changes: 2 additions & 3 deletions cli/command/cluster/add.go
Original file line number Diff line number Diff line change
@@ -40,8 +40,7 @@ const (
ADD_EXAMPLE = `Examples:
$ curveadm add my-cluster # Add a cluster named 'my-cluster'
$ curveadm add my-cluster -m "deploy for test" # Add a cluster with description
$ curveadm add my-cluster -f /path/to/topology.yaml # Add a cluster with specified topology
$ curveadm add my-cluster -t develop # Add a cluster with type 'develop'`
$ curveadm add my-cluster -f /path/to/topology.yaml # Add a cluster with specified topology`
)

var (
@@ -83,7 +82,7 @@ func NewAddCommand(curveadm *cli.CurveAdm) *cobra.Command {
flags := cmd.Flags()
flags.StringVarP(&options.description, "description", "m", "", "Description for cluster")
flags.StringVarP(&options.filename, "topology", "f", "", "Specify the path of topology file")
flags.StringVarP(&options.deployType, "deploy-type", "t", "develop", "Specify the deploy type of cluster")
flags.StringVarP(&options.deployType, "deploy-type", "", "develop", "Specify the deploy type of cluster")
return cmd
}