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
refactor(completion): doc_md.go use pkg/command wrappers
Co-Authored-By: Claude Sonnet 4.6 <[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 22, 2026
commit a5eb08254b3ff5c082274ceea76b248e8e8edd70

There are no files selected for viewing

5 changes: 3 additions & 2 deletions 5 cmd/doc_md.go
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/ucloud/ucloud-sdk-go/ucloud/log"

"github.com/ucloud/ucloud-cli/base"
"github.com/ucloud/ucloud-cli/pkg/command"
)

// NewCmdDoc ucloud doc
Expand Down Expand Up @@ -72,8 +73,8 @@ func NewCmdDoc(out io.Writer) *cobra.Command {
cmd.Flags().StringVar(&dir, "dir", "", "Required. The directory where documents of commands are stored")
cmd.Flags().StringVar(&format, "format", "douku", "Required. Format of the doucments. Accept values: markdown, rst and douku")

cmd.Flags().SetFlagValues("format", "douku", "markdown", "rst")
cmd.Flags().SetFlagValuesFunc("dir", func() []string {
command.SetFlagValues(cmd, "format", "douku", "markdown", "rst")
command.SetCompletion(cmd, "dir", func() []string {
return base.GetFileList("")
})

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.