Skip to content

Commit a943324

Browse files
committed
change 'image_id' to 'image-id' for consistancy
1 parent 0ed97f9 commit a943324

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

cmd/cloudImageDelete.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var cloudImageDeleteCmd = &cobra.Command{
2929
Short: "Delete a Cloud Image",
3030
Long: `Delete a Cloud Image`,
3131
Run: func(cmd *cobra.Command, args []string) {
32-
imageIdFlag, _ := cmd.Flags().GetInt64("image_id")
32+
imageIdFlag, _ := cmd.Flags().GetInt64("image-id")
3333
forceFlag, _ := cmd.Flags().GetBool("force")
3434

3535
// if force flag wasn't passed
@@ -55,8 +55,8 @@ var cloudImageDeleteCmd = &cobra.Command{
5555
func init() {
5656
cloudImageCmd.AddCommand(cloudImageDeleteCmd)
5757

58-
cloudImageDeleteCmd.Flags().Int64("image_id", -1,
58+
cloudImageDeleteCmd.Flags().Int64("image-id", -1,
5959
"id number of the image (see 'cloud image list')")
6060
cloudImageDeleteCmd.Flags().Bool("force", false, "bypass dialog confirmation")
61-
cloudImageDeleteCmd.MarkFlagRequired("image_id")
61+
cloudImageDeleteCmd.MarkFlagRequired("image-id")
6262
}

cmd/cloudImageDetails.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var cloudImageDetailsCmd = &cobra.Command{
2828
Short: "Get details of a Cloud Image",
2929
Long: `Get details of a Cloud Image`,
3030
Run: func(cmd *cobra.Command, args []string) {
31-
imageIdFlag, _ := cmd.Flags().GetInt64("image_id")
31+
imageIdFlag, _ := cmd.Flags().GetInt64("image-id")
3232

3333
apiArgs := map[string]interface{}{"id": imageIdFlag}
3434

@@ -45,7 +45,7 @@ var cloudImageDetailsCmd = &cobra.Command{
4545
func init() {
4646
cloudImageCmd.AddCommand(cloudImageDetailsCmd)
4747

48-
cloudImageDetailsCmd.Flags().Int64("image_id", -1,
48+
cloudImageDetailsCmd.Flags().Int64("image-id", -1,
4949
"id number of the image (see 'cloud image list')")
50-
cloudImageDetailsCmd.MarkFlagRequired("image_id")
50+
cloudImageDetailsCmd.MarkFlagRequired("image-id")
5151
}

cmd/cloudImageRename.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var cloudImageRenameCmd = &cobra.Command{
2828
Short: "Renames a Cloud Image",
2929
Long: `Renames a Cloud Image.`,
3030
Run: func(cmd *cobra.Command, args []string) {
31-
imageIdFlag, _ := cmd.Flags().GetInt64("image_id")
31+
imageIdFlag, _ := cmd.Flags().GetInt64("image-id")
3232
nameFlag, _ := cmd.Flags().GetString("name")
3333

3434
apiArgs := map[string]interface{}{"id": imageIdFlag, "name": nameFlag}
@@ -46,10 +46,10 @@ var cloudImageRenameCmd = &cobra.Command{
4646
func init() {
4747
cloudImageCmd.AddCommand(cloudImageRenameCmd)
4848

49-
cloudImageRenameCmd.Flags().Int64("image_id", -1,
49+
cloudImageRenameCmd.Flags().Int64("image-id", -1,
5050
"id number of the image (see 'cloud image list')")
5151
cloudImageRenameCmd.Flags().String("name", "", "new name for the Cloud Image")
5252

53-
cloudImageRenameCmd.MarkFlagRequired("image_id")
53+
cloudImageRenameCmd.MarkFlagRequired("image-id")
5454
cloudImageRenameCmd.MarkFlagRequired("name")
5555
}

cmd/cloudImageRestore.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var cloudImageRestoreCmd = &cobra.Command{
3131
Run: func(cmd *cobra.Command, args []string) {
3232
uniqIdFlag, _ := cmd.Flags().GetString("uniq_id")
3333
rebuildFsFlag, _ := cmd.Flags().GetBool("rebuild-fs")
34-
imageIdFlag, _ := cmd.Flags().GetInt64("image_id")
34+
imageIdFlag, _ := cmd.Flags().GetInt64("image-id")
3535

3636
validateFields := map[interface{}]interface{}{
3737
uniqIdFlag: "UniqId",
@@ -61,9 +61,9 @@ func init() {
6161
cloudImageCmd.AddCommand(cloudImageRestoreCmd)
6262

6363
cloudImageRestoreCmd.Flags().String("uniq_id", "", "uniq_id of Cloud Server")
64-
cloudImageRestoreCmd.Flags().Int64("image_id", -1, "id of the Cloud Image")
64+
cloudImageRestoreCmd.Flags().Int64("image-id", -1, "id of the Cloud Image")
6565
cloudImageRestoreCmd.Flags().Bool("rebuild-fs", false, "rebuild filesystem before restoring")
6666

6767
cloudImageRestoreCmd.MarkFlagRequired("uniq_id")
68-
cloudImageRestoreCmd.MarkFlagRequired("image_id")
68+
cloudImageRestoreCmd.MarkFlagRequired("image-id")
6969
}

0 commit comments

Comments
 (0)