Skip to content

Commit

Permalink
[CHANGE] not necessary requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
eijei521 committed Aug 11, 2022
1 parent 3c55c6d commit eaf2a56
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion internal/ips/assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func (c *Client) Assign() *cobra.Command {
ipAssignCmd.Flags().StringVarP(&targetIPID, "target-ip-id", "", "", "Subnet or primary-ip type IP ID to route IP to.")

ipAssignCmd.MarkFlagsMutuallyExclusive("target-hostname", "target-id", "target-ip-id")
ipAssignCmd.MarkFlagsRequiredTogether("target-hostname", "project-id")
ipAssignCmd.MarkFlagRequired("ip-address-id")

return ipAssignCmd
Expand Down
1 change: 0 additions & 1 deletion internal/ips/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func (c *Client) Create() *cobra.Command {
ipCreateCmd.Flags().StringSliceVarP(&tags, "tags", "", []string{}, `Tag or list of tags for the server: --tags="key=value,env=prod".`)

ipCreateCmd.MarkFlagsMutuallyExclusive("target-hostname", "target-id", "target-ip-id")
ipCreateCmd.MarkFlagsRequiredTogether("target-hostname", "project-id")

ipCreateCmd.MarkFlagRequired("project-id")
ipCreateCmd.MarkFlagRequired("region")
Expand Down
1 change: 0 additions & 1 deletion internal/servers/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func (c *Client) Get() *cobra.Command {
serverGetCmd.Flags().IntVarP(&projectID, "project-id", "p", 0, "The project's ID.")

serverGetCmd.MarkFlagsMutuallyExclusive("server-id", "hostname")
serverGetCmd.MarkFlagsRequiredTogether("hostname", "project-id")

return serverGetCmd
}
1 change: 0 additions & 1 deletion internal/storages/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func (c *Client) Attach() *cobra.Command {
storageAttachCmd.Flags().IntVarP(&projectID, "project-id", "p", 0, "The project's ID.")

storageAttachCmd.MarkFlagsMutuallyExclusive("server-id", "server-hostname")
storageAttachCmd.MarkFlagsRequiredTogether("server-hostname", "project-id")

storageAttachCmd.MarkFlagRequired("storage-id")

Expand Down

0 comments on commit eaf2a56

Please sign in to comment.