(ctx context.Context, preset string)
| 108 | } |
| 109 | |
| 110 | func downloadDotenv(ctx context.Context, preset string) error { |
| 111 | logInfo.Printf("Downloading .env file from %s\n", dotenvURLs[preset]) |
| 112 | |
| 113 | err := exec.CommandContext(ctx, "gcloud", "storage", "cp", dotenvURLs[preset], ".env").Run() |
| 114 | if err != nil { |
| 115 | return fmt.Errorf("error syncing '.env' file from GCS (you must be a Rill team member and have authenticated `gcloud`): %w", err) |
| 116 | } |
| 117 | return nil |
| 118 | } |
| 119 | |
| 120 | func uploadDotenv(ctx context.Context, preset string) error { |
| 121 | return exec.CommandContext(ctx, "gcloud", "storage", "cp", ".env", dotenvURLs[preset]).Run() |
no test coverage detected