mirror of
https://github.com/docker/compose.git
synced 2025-07-06 13:24:25 +02:00
ACI Volume create flags are required
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
parent
099b64935b
commit
07547d7b87
@ -48,7 +48,7 @@ func ACICommand() *cobra.Command {
|
|||||||
func createVolume() *cobra.Command {
|
func createVolume() *cobra.Command {
|
||||||
aciOpts := aci.VolumeCreateOptions{}
|
aciOpts := aci.VolumeCreateOptions{}
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "create",
|
Use: "create --storage-account ACCOUNT --fileshare FILESHARE",
|
||||||
Short: "Creates an Azure file share to use as ACI volume.",
|
Short: "Creates an Azure file share to use as ACI volume.",
|
||||||
Args: cobra.ExactArgs(0),
|
Args: cobra.ExactArgs(0),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
@ -73,6 +73,8 @@ func createVolume() *cobra.Command {
|
|||||||
|
|
||||||
cmd.Flags().StringVar(&aciOpts.Account, "storage-account", "", "Storage account name")
|
cmd.Flags().StringVar(&aciOpts.Account, "storage-account", "", "Storage account name")
|
||||||
cmd.Flags().StringVar(&aciOpts.Fileshare, "fileshare", "", "Fileshare name")
|
cmd.Flags().StringVar(&aciOpts.Fileshare, "fileshare", "", "Fileshare name")
|
||||||
|
_ = cmd.MarkFlagRequired("fileshare")
|
||||||
|
_ = cmd.MarkFlagRequired("storage-account")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user