Skip to content

chore(deps): bump github.com/gookit/gcli/v3 from 3.3.1 to 3.5.0 - #13

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

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

Release notes

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

v3.5.0

Change Log

Refactor

  • refactor(gcli): strictMode 收敛为驱动 gflag EnhanceShort,弃用盲拆短选项 gookit/gcli@c23dc37

Feature

Other

v3.4.1

Change Log

Feature

Fixed

  • fix(cmd): doExecute 的 recover 改为 defer, 真正捕获执行期 panic gookit/gcli@467d883

Other

... (truncated)

Changelog

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

v3.5.0 - 2026-06-06

Highlights: more flexible struct binding (a new field tag rule plus automatic anonymous-field expansion), declarative interactive input via Question, and opt-in POSIX short-option merging through EnhanceShort — configurable per command or globally with gcli.SetEnhanceShort().

Added

  • Struct binding: TagRuleField tag rule. A new rule for FromStruct that uses the field name (SnakeCase) as the option name and reads metadata from independent tag keys (flag for shorts, plus desc / default / required). Select it via c.FromStruct(ptr, gcli.TagRuleField).
  • Struct binding: anonymous field expansion. Anonymous nested structs are now expanded automatically, so a shared option set can be embedded and reused.
  • Declarative interactive input: CliOpt.Question. When an option value is empty, GCli can collect it via an interactive prompt (a built-in default collector). Set it with gflag.WithQuestion("..."). A custom Collector still takes priority over Question.
  • POSIX short-option enhancement: Config.EnhanceShort. Opt-in combining of short options with self-documenting levels EnhanceShortNone (0, default), EnhanceShortMerge (1, -aux => -a -u -x when all are bool), and EnhanceShortAttach (2, also -Ostdout => -O stdout). A group is split only when all members are bool short options, so value-taking shorts are never mis-parsed.
  • Global EnhanceShort setting. gcli.SetEnhanceShort(level) / gcli.EnhanceShort() apply a level to every command at once; a command's own Config.EnhanceShort still takes priority.
  • Demo commands under _examples/cmd: struct-flag (field tag + anonymous), short-merge (EnhanceShort), ask-demo (Question).

Changed

  • Strict mode now drives the safe EnhanceShort path internally instead of the old "blind split", which used to mis-split value-taking short options (e.g. -Ostdout). strictFormatArgs is reduced to long-option normalization only.

[v3.4.1] - 2026-06-05

Added

  • Built-in shell completion (no genac registration needed).
    • --gen-completion <bash|zsh|pwsh> statically generates a completion script and exits.
    • --in-completion computes completion candidates at runtime; generated scripts are thin and delegate to it, so they need no regeneration when commands change.
    • PowerShell (pwsh) dynamic completion via Register-ArgumentCompleter.
    • A silent completion mode suppresses lifecycle hooks so stdout only contains candidates / the script.
  • Option value candidates: CliOpt.Choices (gflag.WithChoices(...)) feed

... (truncated)

Commits
  • 70d4fe4 docs(blogs): blog 行宽规整(英文 120 折行 / 中文每段一行)
  • a38acdb docs(changelog): v3.5.0 增加 Highlights 总览
  • f87c9e3 docs(blogs): blog 对齐 v3.5.0 发版 + 补全局 EnhanceShort
  • 56c914f docs: 补全局 EnhanceShort 说明 + CHANGELOG v3.4.1/v3.5.0
  • 0c51299 feat(gcli): 支持全局 EnhanceShort 设置
  • d8c702c docs(blogs): 新增 v3.4 新特性介绍 blog(中英双语)
  • bafa73f test: merge to test files to one file
  • c84ea8a docs: README 介绍最近新增功能(B4-B7)
  • a0ee47f feat(gflag): EnhanceShort 增加语义常量 None/Merge/Attach
  • 60bea2f feat(examples): 新增 B4-B7 特性演示命令
  • 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.3.1 to 3.5.0.
- [Release notes](https://github.com/gookit/gcli/releases)
- [Changelog](https://github.com/gookit/gcli/blob/master/CHANGELOG.md)
- [Commits](gookit/gcli@v3.3.1...v3.5.0)

---
updated-dependencies:
- dependency-name: github.com/gookit/gcli/v3
  dependency-version: 3.5.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 8, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jun 14, 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 14, 2026
@dependabot
dependabot Bot deleted the dependabot/go_modules/github.com/gookit/gcli/v3-3.5.0 branch June 14, 2026 11:45
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