feat(CLI-1): sync CLI source from monorepo#467
Open
xescugc wants to merge 2 commits into
Open
Conversation
Replace all CLI source code with a thin installer binary that auto-downloads the correct platform-specific pre-built cy binary from GitHub Releases on first run. What remains: - main.go: shim that downloads + caches + exec's real cy binary - go.mod: stdlib only, no external dependencies - scripts/cy-wrapper.sh: docker toolkit wrapper (unchanged) - LICENSE, README.md What was removed: - All CLI source (cmd/, internal/, printer/, config/, interpolator/) - All generated code (client/models/, client/client/) - All build tooling (Makefile, goreleaser, swagger, compose) - All tests (e2e/, pkg/testcfg/) - All dev config (golangci, changie, flake.nix) The real CLI source now lives in the BE repo (youdeploy-http-api/cli/). This repo will be synced from the BE on each release. go install github.com/cycloidio/cycloid-cli@latest installs the shim. On first run: cy organizations list downloads the real binary and exec's it.
Copy full CLI source code from youdeploy-http-api monorepo with import paths rewritten to github.com/cycloidio/cycloid-cli. Includes shared dependencies (gen/models, utils/ptr, utils/coalesce). Tests and mocks are excluded. All yderr usage replaced with standard fmt.Errorf.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
youdeploy-http-apimonorepoyoudeploy-http-api/cli/tocycloid-cli/gen/models,utils/ptr,utils/coalesceyderrerror handling replaced with standardfmt.ErrorfTest plan
go build .compiles successfullyyoudeploy-http-apiimports in.gofiles