()
| 42 | } |
| 43 | |
| 44 | func newCASBackendAddCmd() *cobra.Command { |
| 45 | cmd := &cobra.Command{ |
| 46 | Use: "add", |
| 47 | Short: "Add a new Artifact CAS backend", |
| 48 | } |
| 49 | |
| 50 | cmd.PersistentFlags().Bool("default", false, "set the backend as default in your organization") |
| 51 | cmd.PersistentFlags().Bool("fallback", false, "set the backend as fallback in your organization") |
| 52 | cmd.PersistentFlags().String("description", "", "descriptive information for this registration") |
| 53 | cmd.PersistentFlags().String("name", "", "CAS backend name") |
| 54 | cmd.PersistentFlags().StringVar(&maxBytesCASBackendOption, "max-bytes", "", "Maximum size for each blob stored in this backend (e.g., 100MB, 1GB)") |
| 55 | err := cmd.MarkPersistentFlagRequired("name") |
| 56 | cobra.CheckErr(err) |
| 57 | |
| 58 | cmd.AddCommand(newCASBackendAddOCICmd(), newCASBackendAddAzureBlobStorageCmd(), newCASBackendAddAWSS3Cmd()) |
| 59 | return cmd |
| 60 | } |
| 61 | |
| 62 | func newCASBackendUpdateCmd() *cobra.Command { |
| 63 | cmd := &cobra.Command{ |
no test coverage detected