Skip to content

chore(deps): bump github.com/gookit/gcli/v3 from 3.3.1 to 3.4.0#11

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

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

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

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

Release notes

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

v3.4.0

Change Log

Refactor

  • refactor(gcli): 移除全局默认 --verbose 选项,改由 GCLI_VERBOSE 控制 gookit/gcli@eb09709
  • refactor(gflag): 抽取 validateAll,合并 Parse/ParseOpts 重复校验逻辑 gookit/gcli@c4f337e
  • refactor(gcli): 全局选项统一为单一数据源(App 复用 gOpts) gookit/gcli@43b6b43
  • refactor(app): findCommandName 改为无副作用返回 foundCmd gookit/gcli@ee0af38
  • refactor(helper): 迁移 helper 至 internal/helper,删除空壳 internal/help_tpl.go gookit/gcli@a60f0a4

Feature

Fixed

Other

Changelog

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

[v3.4.0] - 2026-06-04

⚠️ Breaking Changes

  • Removed public package github.com/gookit/gcli/v3/helper. It has been moved to the internal package internal/helper. These were internal-only utilities (IsGoodName, IsGoodCmdId, IsGoodCmdName, Panicf, RenderText). If you imported it directly, inline your own helpers instead.
  • Removed unused public package github.com/gookit/gcli/v3/gclicom (it was a leftover after the show/progress migration to gookit/cliui and had no in-tree usages).
  • Removed the global --verbose / --verb option. It bound to a per-app copy that was never read by the logger, so it had no effect. Control the log level via the env var GCLI_VERBOSE (e.g. GCLI_VERBOSE=debug) or gcli.SetVerbose() / gcli.SetDebugMode() in code.

Added

  • Command grouping in help. Set Command.Category to group commands under a titled section in the application help. Uncategorized commands fall back to the default Available Commands group (output unchanged when no category is used).
  • Option grouping in help. Set CliOpt.Category (or use gflag.WithCategory("name")) to group options under a titled sub-section. Uncategorized options render first with no sub-title (backward compatible).

Fixed

  • help <command> now works on first invocation. Previously it printed unknown input command "help" because help was not treated as a command.
  • findSimilarCmd no longer pollutes the command registry. It used to write a phantom help entry into the real cmdNames map on any unknown-command run.
  • Command.Copy() no longer clears the source command's hooks (the shallow copy shared the *Hooks pointer and reset the original).
  • gflag.Parser.Parse no longer silently swallows panics — a recovered panic is now returned as an error instead of being printed and ignored.
  • Fixed a compile error in the _examples progress demo after the cliui/progress int64 signature change.

Changed (internal)

  • Global options are now a single source of truth: App reuses the package-level gOpts. NOTE: multiple App instances in the same process now share the global options (verbose/help/version/strict/completion).
  • App.findCommandName is now side-effect free (returns a foundCmd instead of mutating app.args / app.inputName mid-parse).
  • Merged the duplicated option-validation logic shared by Parser.Parse and CliOpts.ParseOpts into a single validateAll.
  • Moved internal-only helper utilities under internal/.

... (truncated)

Commits
  • 9465b8b chore: upgrade dep to latest and update the assert pkg path
  • 7e25cd3 docs(todo): 勾选 CHANGELOG/发版准备项
  • a781a09 docs: 新增 CHANGELOG 并发布 v3.4.0;version 常量更新为 3.4.0
  • 0534175 docs(todo): 勾选已完成的 A/F/G/H 重构项
  • 2f25d9e chore: gofmt 规整预存格式漂移(gflag/gflag.go、gflag/util.go、tcp_proxy.go)
  • 7d62dd8 fix(app): 修复 help COMMAND 失效与 findSimilarCmd 污染命令注册表
  • 6e74bb0 docs(todo): 记录重构期间发现的既有问题(help COMMAND 失效等)
  • 18f7ed4 chore(app): gofmt 规整 prepareRun 上方 doc 注释(本轮已重度修改该文件)
  • bc0d468 chore: 移除未引用的 gclicom 包
  • a60f0a4 refactor(helper): 迁移 helper 至 internal/helper,删除空壳 internal/help_tpl.go
  • 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.4.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.4.0)

---
updated-dependencies:
- dependency-name: github.com/gookit/gcli/v3
  dependency-version: 3.4.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 5, 2026
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