|
8 | 8 | "path/filepath" |
9 | 9 | "strings" |
10 | 10 |
|
| 11 | + "github.com/massdriver-cloud/airlock/pkg/prettylogs" |
11 | 12 | "github.com/massdriver-cloud/mass/docs/helpdocs" |
12 | 13 | "github.com/massdriver-cloud/mass/pkg/api" |
13 | 14 | "github.com/massdriver-cloud/mass/pkg/bundle" |
@@ -92,7 +93,7 @@ func NewCmdBundle() *cobra.Command { |
92 | 93 | RunE: runBundlePublish, |
93 | 94 | } |
94 | 95 | bundlePublishCmd.Flags().StringP("bundle-directory", "b", ".", "Path to a directory containing a massdriver.yaml file.") |
95 | | - bundlePublishCmd.Flags().String("access", "private", "Override the access, useful in CI for deploying to sandboxes.") |
| 96 | + bundlePublishCmd.Flags().String("access", "", "Override the access, useful in CI for deploying to sandboxes.") |
96 | 97 |
|
97 | 98 | bundlePullCmd := &cobra.Command{ |
98 | 99 | Use: "pull <bundle-name>", |
@@ -330,7 +331,8 @@ func runBundlePublish(cmd *cobra.Command, args []string) error { |
330 | 331 |
|
331 | 332 | access, _ := cmd.Flags().GetString("access") |
332 | 333 | if access != "" { |
333 | | - fmt.Println("Warning: The --access flag is deprecated and will be removed in a future release.") |
| 334 | + prettylogs.Orange("Warning: The --access flag is deprecated and will be removed in a future release.") |
| 335 | + fmt.Println(prettylogs.Orange("Warning: The --access flag is deprecated and will be removed in a future release.")) |
334 | 336 | } |
335 | 337 |
|
336 | 338 | bundleDirectory, err := cmd.Flags().GetString("bundle-directory") |
@@ -371,7 +373,7 @@ func runBundlePull(cmd *cobra.Command, args []string) error { |
371 | 373 | // Check if bundle exists in the specified directory and if so prompt the user |
372 | 374 | mdYamlPath := filepath.Join(directory, "massdriver.yaml") |
373 | 375 | if _, err := os.Stat(mdYamlPath); err == nil && !force { |
374 | | - fmt.Printf("Warning: bundle already exists at %s. Continuing will overwrite its contents. Continue? (y/N): ", mdYamlPath) |
| 376 | + fmt.Printf("Bundle already exists at %s. Continuing will overwrite its contents. Continue? (y/N): ", mdYamlPath) |
375 | 377 | reader := bufio.NewReader(os.Stdin) |
376 | 378 | answer, _ := reader.ReadString('\n') |
377 | 379 | answer = strings.TrimSpace(strings.ToLower(answer)) |
|
0 commit comments