Skip to content

chore(deps): bump github.com/gookit/gcli/v3 from 3.5.0 to 3.8.0#15

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/gookit/gcli/v3-3.8.0
Closed

chore(deps): bump github.com/gookit/gcli/v3 from 3.5.0 to 3.8.0#15
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/gookit/gcli/v3-3.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 22, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/gookit/gcli/v3 from 3.5.0 to 3.8.0.

Release notes

Sourced from github.com/gookit/gcli/v3's releases.

v3.8.0

Change Log

Refactor

  • refactor(gcli): 抽出 AppOptions, 每-App 解析状态不再共享单例 gookit/gcli@7e52e9a

Feature

Fixed

Other

... (truncated)

Changelog

Sourced from github.com/gookit/gcli/v3's changelog.

v3.8.0 - 2026-06-22

⚠️ Breaking Changes

  • Per-app parse state moved out of GlobalOpts into a new AppOptions type. The runtime fields ShowHelp / ShowVersion / inCompletion / genCompletion are no longer on GlobalOpts; each App (and standalone command) now owns its own AppOptions, so concurrent App instances no longer share these. App.Opts() still returns the process-level *GlobalOpts (so app.Opts() == gcli.GOpts() and app.Opts().Verbose are unchanged); use the new App.AppOpts() for the per-app state. Process-level config (Verbose / strict / EnhanceShort and the logger) stays in the package singleton, so log-level behavior is unaffected.

Added

  • Three-tier option model with shared (inherited) options: Command.SharedOpts() (≈ cobra's PersistentFlags). Options bound on c.SharedOpts() are inherited by the command and all of its descendant commands, sharing the same bound variable (the same flag.Value/pointer). This adds a shared middle tier between the existing global (app) and local (per-command) options, so a parent option like --git-dir can be written and parsed in any sub-command segment — app top sub --git-dir /x and (with arg reorder) app top sub arg --git-dir /x both work. Use c.SharedOpts() with any binder (BoolOpt/StrOpt/Opt[T]/FromStruct/...). A local option of the same name on a sub-command takes priority; Required on a shared option is validated at the executing (leaf) command. New gflag primitive Parser.InheritOptsFrom(src, category...) re-registers another parser's options by their underlying flag.Value. In a sub-command's help, options inherited from ancestors are grouped under an Inherited Options section (a command's own shared options render with its local options).
  • Command documentation generation: new docgen package + builtin GenDoc command (≈ cobra's cobra/doc). docgen renders a single command or a whole app to markdown (CmdMarkdown / AppMarkdown / MarkdownTree) and man pages (roff) (CmdMan / ManTree). Add builtin.GenDoc() to an app, then run ./cliapp gendoc -f md|man -o ./docs to export docs. Adds a gflag.CliOpt.TypeName() accessor for the option type name.

Fixed

  • FromStruct now expands anonymous embedded structs of an unexported type. The unexported-field-name skip used to run before the anonymous-field check, so an embedded field whose type name is lowercase (e.g. baseFlags, commonOpts — as used by the struct-flag demo and the docs) was silently dropped and its options were never generated. The anonymous check now runs first; the exported inner fields of such an embed are reflectable/addressable and bind correctly. This is independent of the tag rule (TagRuleNamed / TagRuleSimple / TagRuleField).

[v3.7.0] - 2026-06-22

... (truncated)

Commits
  • f03fe4e docs: 澄清匿名嵌套展开与 tag 规则无关(README + v3.8 博客)
  • 3ab62c7 fix(gflag): FromStruct 展开未导出类型的匿名内嵌结构体
  • 6740c62 docs(changelog): 标记 v3.8.0 发布日期 2026-06-22
  • 2d09963 docs(blogs): 新增 v3.8 What's New 博客(中英双语)
  • 81a0fda feat(docgen): man Examples 多行保留
  • e571b2a docs(readme): update some md style in readme
  • 0368684 docs(readme): 重整功能介绍并缩减 color/cliui 周边章节
  • 55c6460 docs(compare): 更新对比文档至 v3.8.0 能力
  • 52bd7f6 fix(docgen): Examples 清除颜色标签并渲染内置变量; index.md 显示版本
  • edb4e70 chore: update changelog and todo, rm a file
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/gookit/gcli/v3](https://github.com/gookit/gcli) from 3.5.0 to 3.8.0.
- [Release notes](https://github.com/gookit/gcli/releases)
- [Changelog](https://github.com/gookit/gcli/blob/master/CHANGELOG.md)
- [Commits](gookit/gcli@v3.5.0...v3.8.0)

---
updated-dependencies:
- dependency-name: github.com/gookit/gcli/v3
  dependency-version: 3.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Jun 22, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Looks like github.com/gookit/gcli/v3 is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Jun 29, 2026
@dependabot dependabot Bot deleted the dependabot/go_modules/github.com/gookit/gcli/v3-3.8.0 branch June 29, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants