Skip to content

[CLI-112] Randomize env create color when color is omitted#424

Draft
fhacloid wants to merge 1 commit intodevelopfrom
cursor/CLI-112-env-create-color-randomization-1350
Draft

[CLI-112] Randomize env create color when color is omitted#424
fhacloid wants to merge 1 commit intodevelopfrom
cursor/CLI-112-env-create-color-randomization-1350

Conversation

@fhacloid
Copy link
Contributor

Summary

  • update cy env create to use true random color selection when --color is not provided
  • apply the same behavior in env create --update when updating an existing env that has no color set
  • add an e2e coverage case ensuring create-without-color returns a color from allowed values

Testing

  • GOTOOLCHAIN=go1.25.0 go test ./cmd/cycloid/environments ./internal/cyargs
  • PATH="$PATH:$(GOTOOLCHAIN=go1.25.0 go env GOPATH)/bin" GOTOOLCHAIN=go1.25.0 make format
  • PATH="$PATH:$(GOTOOLCHAIN=go1.25.0 go env GOPATH)/bin" GOTOOLCHAIN=go1.25.0 make lint-go (fails due pre-existing repo issues in unrelated files: goimports/misspell in cmd/cycloid/middleware/http_client.go, e2e/organizations_test.go, e2e/projects_test.go)

Linear Issue: CLI-112

Open in Web Open in Cursor 

Co-authored-by: fhacloid <fhacloid@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants