GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(products): migrate product command ownership by Episkey-G · Pull Request #101 · ucloud/ucloud-cli

refactor(products): migrate product command ownership #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Ali1213 merged 97 commits into ucloud:master from Episkey-G:refactor-product-migration
Jul 6, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

refactor(products): migrate product command ownership #101

Changes from 1 commit
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
d617b1e
test(snapshot): structure golden generator + baseline
Episkey-G Jun 22, 2026
a94d090
ci(build): unify trigger branch main -> master
Episkey-G Jun 22, 2026
5d36b3a
feat(pkg/cli): Context skeleton + Product + pure-fn relocation
Episkey-G Jun 22, 2026
44abbba
feat(base,pkg/cli): extract AttachHandlers + BuildCredential; NewServ…
Episkey-G Jun 22, 2026
46d78d9
feat(pkg/ui): structured Printer(table/json/yaml) + IsTTY + Confirm
Episkey-G Jun 22, 2026
8b436cc
feat(ux): writer-injectable spinner/refresh + non-TTY suppression
Episkey-G Jun 22, 2026
5c4c2fd
feat(pkg/command): completion wrappers (fork-internal, upstream at C2…
Episkey-G Jun 22, 2026
3c7f82d
feat(doc): vendor GenDoukuTree in-tree (drop fork dependency for douk…
Episkey-G Jun 22, 2026
526851e
refactor(completion): root.go use pkg/command wrappers
Episkey-G Jun 22, 2026
a5eb082
refactor(completion): doc_md.go use pkg/command wrappers
Episkey-G Jun 22, 2026
7e11e9b
refactor(completion): ext.go use pkg/command wrappers
Episkey-G Jun 22, 2026
780136e
refactor(completion): bandwidth.go use pkg/command wrappers
Episkey-G Jun 22, 2026
bf92e48
refactor(completion): globalssh.go use pkg/command wrappers
Episkey-G Jun 22, 2026
df11b19
refactor(completion): unet.go use pkg/command wrappers
Episkey-G Jun 22, 2026
6be6f8e
refactor(completion): image.go use pkg/command wrappers
Episkey-G Jun 22, 2026
411ac55
refactor(completion): firewall.go use pkg/command wrappers
Episkey-G Jun 22, 2026
7777f87
refactor(completion): backup.go use pkg/command wrappers
Episkey-G Jun 22, 2026
2cd923a
refactor(completion): configure.go use pkg/command wrappers
Episkey-G Jun 22, 2026
cb09480
refactor(completion): disk.go use pkg/command wrappers
Episkey-G Jun 22, 2026
ffc7814
refactor(completion): eip.go use pkg/command wrappers
Episkey-G Jun 22, 2026
e91c29b
refactor(completion): umem.go use pkg/command wrappers
Episkey-G Jun 22, 2026
4f1b752
refactor(completion): vpc.go use pkg/command wrappers
Episkey-G Jun 22, 2026
018a64b
refactor(completion): udb.go use pkg/command wrappers
Episkey-G Jun 22, 2026
9768528
refactor(completion): pathx.go use pkg/command wrappers
Episkey-G Jun 22, 2026
04cc33b
refactor(completion): mysql.go use pkg/command wrappers
Episkey-G Jun 22, 2026
baf3dbd
refactor(completion): ulb.go use pkg/command wrappers
Episkey-G Jun 22, 2026
dfe4f91
refactor(completion): uhost.go use pkg/command wrappers
Episkey-G Jun 22, 2026
3721497
style(completion): gofmt cmd/bandwidth.go ext.go uhost.go
Episkey-G Jun 22, 2026
9675ee0
refactor(completion): bind helpers take *cobra.Command via pkg/comman…
Episkey-G Jun 22, 2026
dbfa588
fix(completion): register --profile completion on persistent flags (S…
Episkey-G Jun 22, 2026
bf7121d
build(deps): drop vendored deps, switch to go modules; go 1.19 -> 1.25
Episkey-G Jun 22, 2026
bb8ec5d
build(cobra): drop lixiaojun629 fork -> upstream cobra/pflag native c…
Episkey-G Jun 22, 2026
dc36ab8
feat(completion): upstream cobra completion scripts (install method c…
Episkey-G Jun 22, 2026
306da6e
test(snapshot): completion-candidate golden (static enums verified, d…
Episkey-G Jun 22, 2026
7041ee9
feat(ai): global --output flag + non-TTY defaults to json
Episkey-G Jun 22, 2026
a30b2ae
feat(ai): hidden __schema command (machine-readable capability catalog)
Episkey-G Jun 22, 2026
d941716
refactor(version): const Version -> var for ldflags injection
Episkey-G Jun 22, 2026
73b797b
feat(platform): products.yaml registry (register udb)
Episkey-G Jun 22, 2026
72f50da
feat(platform): hack/gen-products generator + products.gen.go stub
Episkey-G Jun 22, 2026
430051a
refactor(cmd): split addChildren into platform/product/global-overrid…
Episkey-G Jun 22, 2026
670fe11
feat(platform): hack/check-product boundary checker (stdlib AST; no n…
Episkey-G Jun 22, 2026
4622630
build(goreleaser): multi-platform+ldflags+changelog+release; drop git…
Episkey-G Jun 22, 2026
db904a7
ci(release): master-triggered svu->tag->goreleaser, serialized, no to…
Episkey-G Jun 22, 2026
3053cea
ci(gate): PR admission gate (scope/conventional/protected) + check-pr…
Episkey-G Jun 22, 2026
2cd552b
ci(merge-queue): merge_group trigger on build.yml + document required…
Episkey-G Jun 22, 2026
74b1029
feat(udb): migrate mysql db subtree to products/udb/internal/mysql (F…
Episkey-G Jun 22, 2026
79e26da
feat(udb): migrate conf + backup/log subtrees to products/udb (F8-F9)…
Episkey-G Jun 22, 2026
9817ed0
feat(udb): switch mysql registration to products/udb; remove cmd/{mys…
Episkey-G Jun 22, 2026
0a3f8d7
feat(platform): spec alignment, internal/common, structured output, e…
Episkey-G Jun 23, 2026
6347215
fix(ci): replace deprecated goreleaser archives.builds with ids
Episkey-G Jun 23, 2026
e490dac
fix(ci): auto-detect goreleaser release target instead of hardcoding …
Episkey-G Jun 23, 2026
79503bc
fix(pathx): key base.DescribeTableRow struct literal fields
Episkey-G Jun 23, 2026
2b38894
Merge pull request #1 from Episkey-G/feat/monorepo-restructure
Episkey-G Jun 23, 2026
f218127
fix(ci): customer-facing release changelog
Episkey-G Jun 24, 2026
2db8493
Merge pull request #2 from Episkey-G/feat/monorepo-restructure
Episkey-G Jun 24, 2026
8ff3ad0
ci(release): patch-only version policy — force svu patch, never auto-…
Episkey-G Jun 24, 2026
63da6d5
Merge pull request #3 from Episkey-G/feat/monorepo-restructure
Episkey-G Jun 24, 2026
70a01bc
refactor(common): add FormatDate + IsBase64Encoded pure utils
Episkey-G Jun 24, 2026
05cdf18
refactor(common): sink FormatDate to internal/common; drop base.Forma…
Episkey-G Jun 24, 2026
752af88
refactor(common): sink IsBase64Encoded to internal/common; drop base …
Episkey-G Jun 24, 2026
c03e836
refactor(common): finish FormatDateTime dedup; drop base copy
Episkey-G Jun 24, 2026
f089686
refactor(common): finish GetFileList dedup; drop base copy (keep base…
Episkey-G Jun 24, 2026
4e88392
refactor(base): drop dead utils (WriteJSONFile/AppendToFile/LineInFil…
Episkey-G Jun 24, 2026
b16abb2
refactor(pkg/ui): add ui.PrintJSON; Context.PrintJSON delegates to ui…
Episkey-G Jun 25, 2026
f027be6
refactor(pkg/cli): drop dead Context.biz field (never read)
Episkey-G Jun 25, 2026
7ce2ef5
refactor(common): demote duplicate package doc comment in encoding.go
Episkey-G Jun 25, 2026
fc9031a
refactor(common): make encoding.go header a file comment, not a packa…
Episkey-G Jun 25, 2026
80ec06d
refactor(base): dedup GetHomePath — route base callers to common.GetH…
Episkey-G Jun 25, 2026
a609fc6
Merge pull request #4 from Episkey-G/feat/monorepo-restructure
Episkey-G Jun 25, 2026
5a1a8fd
ci(release): also release on refactor/perf commits (keep patch-only)
Episkey-G Jun 25, 2026
8d83ab6
ci(release): make refactor/perf detector pipefail-safe and merge-body…
Episkey-G Jun 25, 2026
0c700a7
Merge pull request #5 from Episkey-G/ci/release-include-refactor
Episkey-G Jun 25, 2026
0c21ccd
feat(check-product): add rule7 cross-product uniqueness + rule8 comma…
Episkey-G Jun 25, 2026
9f67dc6
refactor(products): split central products.yaml into per-product prod…
Episkey-G Jun 25, 2026
455387a
feat(owner-gate): product-autonomy admission gate (base-version owners)
Episkey-G Jun 25, 2026
51ba075
ci(pr-gate): add owner-gate + hold-gate + native auto-merge
Episkey-G Jun 25, 2026
4254e40
fix(pr-gate): three-dot diff for owner-gate + hold-gate reruns on lab…
Episkey-G Jun 26, 2026
312b358
Merge pull request #6 from Episkey-G/ci/release-include-refactor
Episkey-G Jun 27, 2026
b6e71b8
feat(ci): owner-gate platform hard-block + admission gate (#7)
Episkey-G Jun 29, 2026
5209add
feat(platform): P3 Part 0 — C2 ux/platform exposure (#8)
Episkey-G Jun 30, 2026
c186f39
feat(batch1): migrate compute-domain products to products/ (uphost/fi…
Episkey-G Jul 1, 2026
bfc8774
feat(platform): per-product goldens, §6.1 import whitelist, per-verb …
Episkey-G Jul 2, 2026
2e7b971
refactor(uhost): per-verb file layout (P3.6) (#12)
Episkey-G Jul 2, 2026
4cb70b3
refactor(uphost): per-verb file layout (P3.6) (#17)
Episkey-G Jul 2, 2026
e0cd229
fix(udb): adopt the platform machine-output contract (EmitResult/Prog…
Episkey-G Jul 2, 2026
35c91fa
refactor(udisk): per-verb file layout (P3.6) (#13)
Episkey-G Jul 2, 2026
2ffbc28
refactor(eip): per-verb file layout (P3.6) (#14)
Episkey-G Jul 2, 2026
73ad182
refactor(firewall): per-verb file layout (P3.6) (#15)
Episkey-G Jul 2, 2026
96e70e9
refactor(image): per-verb file layout (P3.6) (#16)
Episkey-G Jul 2, 2026
3873634
refactor(udb): per-verb file layout (P3.6) (#18)
Episkey-G Jul 2, 2026
01493ca
feat(check-product): rule-10 layout gate + auto-merge permissions fix…
Episkey-G Jul 2, 2026
2dd6109
fix(cli): align E2E exit code, confirmation, and empty-result contrac…
Episkey-G Jul 3, 2026
9073e6c
fix(uhost): stop resize when stop confirmation is declined (#22)
Episkey-G Jul 4, 2026
e691a25
fix(uhost): distinguish async stop from declined resize stop (#23)
Episkey-G Jul 4, 2026
ed2ee25
fix(uhost): wait for stop before async resize (#24)
Episkey-G Jul 4, 2026
043ed6c
ci(release): trigger releases after product auto-merge (#25)
Episkey-G Jul 6, 2026
d09e7ef
ci(release): quiet drift guard during active releases (#26)
Episkey-G Jul 6, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
ci(release): also release on refactor/perf commits (keep patch-only)
The release detector previously used only `svu next` (feat/fix/breaking), so a
refactor-only merge produced no release (e.g. PR #4's platform cleanup was
skipped). Add a git-log grep for refactor/perf commit types alongside svu next
so platform refactors also cut a patch release; pure docs/chore/test/ci/style/
build merges still skip. The bump stays PATCH-ONLY (svu patch) — version policy
unchanged.

Verified locally: new detector matches all 11 refactor commits since v0.3.4
(=> would release v0.3.5) and correctly ignores chore/docs/ci/test/style; YAML
validates.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@Episkey-G @claude
Episkey-G and claude committed Jun 25, 2026
commit 5a1a8fd9a6c59e97382826ad3fe33d15e73e2030

There are no files selected for viewing

32 changes: 21 additions & 11 deletions 32 .github/workflows/release.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@
# 2. Version policy: every release is a PATCH bump (0.3.3 → 0.3.4 → 0.3.5),
# regardless of whether the commits are feat or fix — we intentionally do
# NOT auto-minor on feat. svu is used in two roles here:
# - `svu next` → DETECTOR only: if it equals `svu current`, there are no
# releasable conventional commits since the last tag, so
# we skip. (next > current ⇒ something worth releasing.)
# - `svu next` → DETECTOR: if it equals `svu current`, svu sees no
# releasable feat/fix/breaking commit since the last tag.
# We additionally treat refactor/perf commits as
# releasable (a `git log` grep), so platform refactors
# ship too; pure docs/chore/test/ci/style/build still skip.
# - `svu patch` → the actual version: always current + 0.0.1.
# 3. If there are releasable commits, the job tags HEAD with that patch version
# and pushes the tag — all in the SAME job that runs goreleaser.
# This avoids the "default GITHUB_TOKEN-pushed tag doesn't trigger a
# downstream workflow" trap: tag + release happen in one atomic job.
# 4. goreleaser builds the binaries and creates the GitHub Release.
# 5. If there are no new feat/fix commits, the job exits early without
# creating a release.
# 5. If there are no new releasable commits (feat/fix/perf/refactor/breaking),
# the job exits early without creating a release.
#
# First-launch guard:
# The `environment: release` line below requires manual approval via
Expand Down Expand Up @@ -63,13 +65,21 @@ jobs:
run: |
SVU="$(go env GOPATH)/bin/svu"
CURRENT="$("$SVU" current)"
# DETECTOR: svu next > current iff there are releasable conventional
# commits since the last tag. We never publish `svu next` itself —
# the version policy is patch-only (see header).
DETECT="$("$SVU" next)"
echo "current=$CURRENT" >> "$GITHUB_OUTPUT"
if [ "$DETECT" != "$CURRENT" ]; then
NEXT="$("$SVU" patch)" # force a patch bump regardless of feat/fix
# DETECTOR: is there anything releasable since the last tag ($CURRENT)?
# - `svu next` catches feat/fix/breaking (next != current ⇒ releasable).
# - We ADD refactor/perf so platform refactors also ship. Pure
# docs/chore/test/ci/style/build merges still skip.
# We never publish `svu next` itself — the version policy is patch-only
# (every release is current + 0.0.1; see header).
DETECT="$("$SVU" next)"
RELEASABLE=""
if git log --format='%s' "$CURRENT"..HEAD \
| grep -qE '^(refactor|perf)(\([^)]+\))?!?:'; then
RELEASABLE="refactor/perf"
fi
if [ "$DETECT" != "$CURRENT" ] || [ -n "$RELEASABLE" ]; then
NEXT="$("$SVU" patch)" # force a patch bump regardless of commit type
echo "next=$NEXT" >> "$GITHUB_OUTPUT"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
Expand Down
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.