Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 12, 2025

Bumps go.bbkane.com/warg from 0.0.33 to 0.0.34.

Changelog

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

v0.0.34

Added

  • Added warg.FindVersion to calculate the version of the app. Useful if you need the version before starting the app (particularly for setting up OTEL tracing)

Added new completion convenience functions instead of making folks manually construct a wargcore.CompletionsFunc (also see "Changed" section)

  • Added warg.CompletionsDirectories
  • Added warg.CompletionsDirectoriesFiles
  • Added warg.CompletionsNone
  • Added warg.CompletionsValues
  • Added warg.CompletionsValuesDescriptions

As I've noticed I basically want a --color flag, a version subcommand, and zsh completions in all of my apps, this version of warg adds them automatically. Use warg.SkipXxx if you don't want them or want to write your own customized version.

Full list:

  • Added warg.SkipAll to skip adding the completion section, the --color global flag, the version root command, and validation on start up. This is intended for tests where you just want to assert against a minimal application.
  • Added warg.SkipCompletionCommands to let folks customize shell completions (currently only zsh) or avoid adding them. By default a root level completion section will be added. Currently only has zsh subcommand.
  • Added warg.SkipGlobalColorFlag to skip adding the default --color flag automatically. Removed warg.ColorFlagMap
  • Added warg.SkipVersionCommmand to skip adding the version root command automatically. Removed warg.VersionCommandMap

Changed

Changed s/CompletionCandidates/Completions for all warg functions

  • command.DefaultCompletionsCandidates -> command.DefaultCompletions
  • comand.CompletionCandidates -> command.Completions
  • flag.DefaultCompletionsCandidates -> flag.DefaultCompletions
  • flag.CompletionCandidates -> flag.Completions
  • wargcore.App.CompletionCandidates -> wargcore.App.Completions
  • wargcore.CompletionCandidatesFunc -> wargcore.CompletionsFunc

Removed

  • Removed warg.ColorFlagMap and warg.VersionCommandMap. See description in the "Added" section
Commits
  • 8cf6ff6 update completion script
  • f145c80 Don't log to a file when completing
  • 31845ce s/CompletionCandidates/Completions
  • f5e4f26 Update golden tests; add CompletionCandidates funcs
  • b11fc3a Add Skip APIs
  • ae25f11 Merge pull request #92 from bbkane/bbkane/fix-lints
  • f052660 Update golanci-lint; fix lint errors
  • 620b274 WIP: why wont the lint setting work?
  • See full diff 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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.0.33 to 0.0.34.
- [Changelog](https://github.com/bbkane/warg/blob/master/CHANGELOG.md)
- [Commits](bbkane/warg@v0.0.33...v0.0.34)

---
updated-dependencies:
- dependency-name: go.bbkane.com/warg
  dependency-version: 0.0.34
  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 Aug 12, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 23, 2025

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

@dependabot dependabot bot closed this Aug 23, 2025
@dependabot dependabot bot deleted the dependabot/go_modules/go.bbkane.com/warg-0.0.34 branch August 23, 2025 03:06
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