Skip to content

Bump go.bbkane.com/warg from 0.40.0 to 0.40.2#55

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/go.bbkane.com/warg-0.40.2
Closed

Bump go.bbkane.com/warg from 0.40.0 to 0.40.2#55
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/go_modules/go.bbkane.com/warg-0.40.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Bumps go.bbkane.com/warg from 0.40.0 to 0.40.2.

Changelog

Sourced from go.bbkane.com/warg's changelog.

Changelog

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.

Note that I update this changelog as I make changes, so the top version (right below this description) is likely unreleased.

v0.42.2

NOTE: this is the first release since v0.40.0/v0.0.40 without two tags!

Added

  • Bash completion! It doesn't work with COMPLETION_TYPE_DIRECTORIES, but seems to work with everything else.
  • Fish completion! It ALSO doesn't work with COMPLETION_TYPE_DIRECTORIES, but seems to work with everything else.
  • warg.FlagGroup to group together flags in --help. Also see ./examples/flaggroup
  • New contained numeric types for use in flags (scalar/list/dict): Int8(), Int16(), Int32(), Int64() Uint(), Uint8(), Uint16(), Uint32(), Uint64() Float32(), Float64()

Changed

  • Updated doc comments for most public APIs
  • If parsing fails, print a colored error! We also now show available choices for arguments if we can. Colored errors are enabled by default if stderr is a terminal, but can be disabled with WARG_COLOR=false
  • Improved error when updating scalar flag twice from passed args

v0.41.1 / v0.0.41

Added

  • MustRunWithArgs - intended for example tests and takes args []string as an alternative to MustRunWithArgs
  • styles package with Styles struct for customizing warg output colors and Printer as a small wrapper around io.Writer and the fmt.FPrintXXX functions (I use them a lot in the help functions)
  • --term-width flag added by default, along with SkipGlobalTermWidthFlag() to avoid adding it, and TermWidth() to pull it from the flag with smart defaults ("auto", "infinite", an integer)
  • --help compact and made it the default for when running a command

Changed

  • Renamed ConditionallyEnableColor to ColorEnabled and made it return a bool instead of a gocolor.Color. Calling code should migrate to:
// old
col, err := warg.ConditionallyEnableColor(flags, file)
// new
colorEnabled := warg.ColorEnabled()
col, err := gocolor.Prepare(colorEnabled)

  • Renamed App.Completions to App.Complete to match the case of the other methods
  • App.Parse, App.Complete, App.MustRunWithArgs now take args []string as the first argument representing the strings the user passed (starting with secion/comamand and ending with flag values). Previously they expected something that looked like os.Args and each to trim that down to what they actually wanted (and os.Args is different for each of them so the trimming was also different). This trimming is now centralized in App.MustRun.

... (truncated)

Commits
  • f0be658 Update tags for 0.40.2, docs, small error updates
  • 548903a Formatting
  • 14c9fbb Merge branch 'master' of https://github.com/bbkane/warg
  • 6d92f8e Update doc comments
  • 2ea032a Merge pull request #125 from bbkane/dependabot/go_modules/all-dependencies-a2...
  • 41c9839 Bump golang.org/x/term in the all-dependencies group
  • 1ef3d91 Merge pull request #124 from bbkane/dependabot/go_modules/all-dependencies-ee...
  • 63906f2 Bump github.com/mattn/go-isatty in the all-dependencies group
  • 0a498bb Merge pull request #123 from bbkane/dependabot/go_modules/all-dependencies-49...
  • d8d06fd Bump the all-dependencies group with 2 updates
  • 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 [go.bbkane.com/warg](https://github.com/bbkane/warg) from 0.40.0 to 0.40.2.
- [Changelog](https://github.com/bbkane/warg/blob/master/CHANGELOG.md)
- [Commits](bbkane/warg@v0.40.0...v0.40.2)

---
updated-dependencies:
- dependency-name: go.bbkane.com/warg
  dependency-version: 0.40.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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 May 25, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 26, 2026

Looks like go.bbkane.com/warg is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this May 26, 2026
@dependabot dependabot Bot deleted the dependabot/go_modules/go.bbkane.com/warg-0.40.2 branch May 26, 2026 05:19
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