// NewCmdStorage implements the odo storage command
NewCmdStorage implements the odo storage command
// NewCmdStorage implements the odo storage command
func NewCmdStorage() *cobra.Command {
	storageCreateCmd.Flags().StringVar(&storageSize, "size", "", "Size of storage to add")
	storageCreateCmd.Flags().StringVar(&storagePath, "path", "", "Path to mount the storage on")
	storageCreateCmd.MarkFlagRequired("path")
	storageCreateCmd.MarkFlagRequired("size")
	storageDeleteCmd.Flags().BoolVarP(&storageForceDeleteflag, "force", "f", false, "Delete storage without prompting")
	storageListCmd.Flags().BoolVarP(&storageAllListflag, "all", "a", false, "List all storage in all components")
	storageMountCmd.Flags().StringVar(&storagePath, "path", "", "Path to mount the storage on")
	storageMountCmd.MarkFlagRequired("path")
	storageCmd.AddCommand(storageCreateCmd)
	storageCmd.AddCommand(storageDeleteCmd)
	storageCmd.AddCommand(storageUnmountCmd)
	storageCmd.AddCommand(storageListCmd)
	storageCmd.AddCommand(storageMountCmd)
	addProjectFlag(storageCreateCmd)
	addProjectFlag(storageDeleteCmd)
	addProjectFlag(storageListCmd)
	addProjectFlag(storageMountCmd)
	addProjectFlag(storageUnmountCmd)
	genericclioptions.AddApplicationFlag(storageCreateCmd)
	genericclioptions.AddApplicationFlag(storageDeleteCmd)
	genericclioptions.AddApplicationFlag(storageListCmd)
	genericclioptions.AddApplicationFlag(storageMountCmd)
	genericclioptions.AddApplicationFlag(storageUnmountCmd)
	genericclioptions.AddComponentFlag(storageCreateCmd)
	genericclioptions.AddComponentFlag(storageDeleteCmd)
	genericclioptions.AddComponentFlag(storageListCmd)
	genericclioptions.AddComponentFlag(storageMountCmd)
	genericclioptions.AddComponentFlag(storageUnmountCmd)
	storageCmd.Annotations = map[string]string{"command": "other"}
	storageCmd.SetUsageTemplate(odoutil.CmdUsageTemplate)
	completion.RegisterCommandHandler(storageDeleteCmd, completion.StorageDeleteCompletionHandler)
	completion.RegisterCommandHandler(storageMountCmd, completion.StorageMountCompletionHandler)
	completion.RegisterCommandHandler(storageUnmountCmd, completion.StorageUnMountCompletionHandler)
	return storageCmd
}
func NewCmdStorage ( ) * cobra . Command { storageCreateCmd . Flags ( ) . StringVar ( & storageSize , " " , " " , " " ) storageCreateCmd . Flags ( ) . StringVar ( & storagePath , " " , " " , " " ) storageCreateCmd . MarkFlagRequired ( " " ) storageCreateCmd . MarkFlagRequired ( " " ) storageDeleteCmd . Flags ( ) . BoolVarP ( & storageForceDeleteflag , " " , " " , false , " " ) storageListCmd . Flags ( ) . BoolVarP ( & storageAllListflag , " " , " " , false , " " ) storageMountCmd . Flags ( ) . StringVar ( & storagePath , " " , " " , " " ) storageMountCmd . MarkFlagRequired ( " " ) storageCmd . AddCommand ( storageCreateCmd ) storageCmd . AddCommand ( storageDeleteCmd ) storageCmd . AddCommand ( storageUnmountCmd ) storageCmd . AddCommand ( storageListCmd ) storageCmd . AddCommand ( storageMountCmd ) addProjectFlag ( storageCreateCmd ) addProjectFlag ( storageDeleteCmd ) addProjectFlag ( storageListCmd ) addProjectFlag ( storageMountCmd ) addProjectFlag ( storageUnmountCmd ) genericclioptions . AddApplicationFlag ( storageCreateCmd ) genericclioptions . AddApplicationFlag ( storageDeleteCmd ) genericclioptions . AddApplicationFlag ( storageListCmd ) genericclioptions . AddApplicationFlag ( storageMountCmd ) genericclioptions . AddApplicationFlag ( storageUnmountCmd ) genericclioptions . AddComponentFlag ( storageCreateCmd ) genericclioptions . AddComponentFlag ( storageDeleteCmd ) genericclioptions . AddComponentFlag ( storageListCmd ) genericclioptions . AddComponentFlag ( storageMountCmd ) genericclioptions . AddComponentFlag ( storageUnmountCmd ) storageCmd . Annotations = map [ string ] string { " " : " " } storageCmd . SetUsageTemplate ( odoutil . CmdUsageTemplate ) completion . RegisterCommandHandler ( storageDeleteCmd , completion . StorageDeleteCompletionHandler ) completion . RegisterCommandHandler ( storageMountCmd , completion . StorageMountCompletionHandler ) completion . RegisterCommandHandler ( storageUnmountCmd , completion . StorageUnMountCompletionHandler ) return storageCmd }
NewCmdStorage implements the odo storage command
NewCmdStorage implements the odo storage command
//Adding `--project` flag //Adding `--application` flag //Adding `--component` flag // Add a defined annotation in order to appear in the help menu