Skip to content

Releases: gookit/gcli

v3.2.3

27 Jul 11:08
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat: event support prefix hooks(eg: app.*), add new event: OnAppExit 4566d6a

Other

  • ⬆️ dep: update gookit/color and goutil to latest 6720e51
  • 📦 chore: update the go.sum file 6925fd3
  • build(deps): bump golang.org/x/crypto from 0.10.0 to 0.11.0 (#94) 0c48921

v3.2.2

25 Jun 16:47
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat(flag): add some new ext flag value implements a3fda82
  • ✨ feat(opt): support bind default value from flag ptr 0b038f5
  • ✨ feat(gflag): add new flag parse config IndentLongOpt 21da8f9

Update

  • 👔 up(gflag): update the binding options from struct logic f00baba
  • 👔 up(app): update the command register logic, set IndentLongOpt=true 69d1c14
  • 👔 up(show): MList support struct and any map data for render 9dc5969
  • 👔 up: update some for flag parse logic, update deps to latest c5600f8

Other

  • build(deps): bump golang.org/x/crypto from 0.6.0 to 0.7.0 (#81) f69e782
  • build(deps): bump github.com/gookit/goutil from 0.6.6 to 0.6.7 (#82) fc4b8b8
  • build(deps): bump morphy2k/revive-action from 2.4.1 to 2.5.0 (#83) 58bb452
  • build(deps): bump morphy2k/revive-action from 2.5.0 to 2.5.1 (#84) 776ef14
  • build(deps): bump github.com/gookit/color from 1.5.2 to 1.5.3 (#85) 9ee8ea0
  • ⬆️ chore(dep): update the gookit/goutil to v0.6.8 aba53f6
  • build(deps): bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#87) dd22258
  • build(deps): bump morphy2k/revive-action from 2.5.1 to 2.5.2 (#89) 6521dc3
  • ⬆️ dep: upgrade the x/crypto v0.7.0 to v0.10.0 ef8e59b

What's Changed

Full Changelog: v3.2.1...v3.2.2

v3.2.1

26 Feb 03:54
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat(gflag): add new methods args.WithAfterFn and update tag value parse 2804f64

Update

  • 👔 up(app): update app and cmd run logic, app.RunCmd now will return error bc43572
  • 👔 up(show): update some for emoji render and some docs 67c2b18
  • 👔 up: update app and cmd help render logic dd8e114

Other

  • ⬆️ dep: update all deps to the latest version 2925e1a
  • ⬆️ dep: update gookit/goutil to the latest version eba208b

v3.2.0

12 Feb 02:42
Compare
Choose a tag to compare

Change Log

Fixed

  • fix(ci): github action config error on go1.20 031895d
  • ✅ fix(gflag): fix a options test check error 4408098
  • 💚 fix: build error on use not exists method 0eef495

Feature

  • ✨ feat(gflag): add more config func for quick config flag option 63d2520

Update

  • 👔 up: update some for command help display format ac59105
  • 👔 up: update the cli option binding logic 24474f7
  • 💥 update(all): will not support on go < 1.18 5d90613
  • 💥 update(cmd): param args will exclude named arguments on run cmd.Func 76bdb02
  • 👔 up(cmd): add panics recover handle on run cmd.Func 1c0ad15
  • 👔 up(cmd): update some cmd events fire logic 3657720
  • 👔 up(gflag): update the command arguments help render logic fa84b6f
  • 👔 up: update the cmd event fire, will notify parents and app cf7abed

Other

  • chore: update deps and add tests on go1.20 c1a77a9
  • ✅ test(gflag): add more tests for flag option 607a29b
  • build(deps): bump golang.org/x/term from 0.4.0 to 0.5.0 a7b2f23
  • build(deps): bump golang.org/x/crypto from 0.5.0 to 0.6.0 1852da4
  • ⬆️ dep: upgrade the gookit/goutil to v0.6.4 8524056
  • 💚 test: fix unit tests error on run go test 8e7b9a8

v3.1.1

22 Dec 06:39
Compare
Choose a tag to compare

Change Log

Refactor

  • 5120a1f refactor: refactor the help string-vars handle logic

Feature

  • f907351 ✨ feat(interact): add new interactive component input-collector

Update

  • 7a08b24 up: add some compat methods on base, fix some error
  • b9fbf43 up: deprecated the Command.Errorf, update some refer usage
  • 189e253 up: show - update some show tool implement logic
  • 02e21bc up: builtin, helper - update some helper util func
  • 80dd56a 👔 up: add new multi choices for input params

Other

  • c9951f0 build(deps): bump WillAbides/setup-go-faster from 1.7.0 to 1.8.0
  • 7075798 build(deps): bump github.com/gookit/goutil from 0.5.15 to 0.6.0
  • a90c415 dep: update dep goutil to latest v0.6.1
  • e23b2e6 💡 chore: fix some code build error
  • 81efec5 💡 chore: remove ci tests on go < 1.18

v3.1.0

16 Oct 21:41
Compare
Choose a tag to compare

Change Log

Refactor

  • refactor: refact the app and cmd event handle logic 7206e9c
  • refactor: move the HelpVars to sub pkg helper 78e8fdf
  • refactor: refactor the gflag parse to sub-pkg /gflag 931b003
  • refactor: move all flag arguments manage logic to pkg /gflag 7322987
  • refactor: gflag - rename struct FlagMeta to Option 7a3fd89
  • refactor: gflag - refactor the gflag.Flags to Parser and CliOpts 9feede0

Update

  • up: show - update some show util struct logic edde870
  • up: show - update the show logic, add global output c4106f3
  • up: update the gouitl to latest, update some comments 8dfcc56
  • up: refactor use pkg IO replace os.Std 3d6cf1f
  • up: update some app run logic fff4d8c
  • up: update some cmd add and init logic 963b35e
  • up: update some gflag and app run logic 0b253e2
  • up: update the gOpts reset func logic, update some tests 01d0e0c
  • up: gflag - refactor and update some flag parse logic 7fe4634
  • up: update some docs and update some helper funcs 7a02863
  • up: update some app and cmd method name, update some type name. 3479377
  • up: update some for gflag parse and app init logic 3482598
  • up: fix cmd init error, missing init cli parser 4c7ed4b
  • up: update some for flag parse and cmd init 08e163b
  • up: update some app and cmd event fire logic 96aa894
  • up: update some tests and pkg readme docs 31f80dd
  • up: rename gflag type name and update some codes 438e1e4
  • up: ext flag vars use the goutil/cflag.ext_vars instead f54ac5a
  • up: update some deps version, fix app help display error dcbe38d

Other

  • help: update app help render on not subcommands 98ffe1a
  • chore: show - replace the interface{} to go1.18 any ff70ef3
  • chore: prog,example - replace the interface{} to go1.18 any 4e9980d
  • chore: interact - replace the interface{} to go1.18 any de96285
  • chore: gcli - replace the interface{} to go1.18 any 93988d8
  • test: fix some event fire tests error 55c2a8b
  • wip: refactoring app and global options logic 41a4d39
  • wip: refactoring app and cmd core context init logic 54b41a7
  • wip: refactoring the app and cmd context logic f335cf8
  • dep: update the gookit/goutil to v0.5.12 e5748f2
  • chore: fix example run error and cmd help message error 4243004
  • test: fix cmd init event fire error and some test error 1b510b3
  • chore: update some sub pkg README docs 8684f86
  • chore: update deps and update some comments 2490e60

What's Changed

  • v3.1.0: refactor app and cmd run and event logic by @inhere in #69

Full Changelog: v3.0.6...v3.1.0

v3.0.6

01 Sep 04:36
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: panic when providing an empty string as an argument 886a02d
  • fix: nil pointer in serveman example 76a961c

Update

  • up: add test on go1.19 and rm test on go1.15 2cc1662
  • up: gh action only test on go 1.18+ 5cfe464

Other

  • build(deps): bump github.com/gookit/goutil from 0.5.8 to 0.5.9 1e140d6
  • build(deps): bump github.com/gookit/goutil from 0.5.9 to 0.5.10 745bdca
  • build(deps): bump github.com/gookit/color from 1.5.1 to 1.5.2 ec43b1b
  • chore: update some comments, fix error on _examples/serveman/commands.go 687c184

New Contributors

Full Changelog: v3.0.5...v3.0.6

v3.0.5

13 Aug 05:35
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: parse bool type 6b76859
  • fix: handling of CmdNotFound errors 0c89eea

Update

  • up: rename FlagMeta.Flag to FlagMeta.flag c1d2ceb
  • up: allow to disable global options by GOpts().SetDisable(). issues#42 b59c90b
  • up: update logic for flags format, fix words style 80e07fd

Other

  • chore: update readme and update some method comments 517b05e
  • build(deps): bump morphy2k/revive-action from 2.3.1 to 2.4.0 d29385b
  • build(deps): bump github.com/gookit/goutil from 0.5.7 to 0.5.8 08d825f
  • chore: update some comments and add some debug logs 690c080
  • test: update and fix unit test error 2664e20

What's Changed

New Contributors

Full Changelog: v3.0.4...v3.0.5

v3.0.4

18 Jul 02:08
Compare
Choose a tag to compare

Change Log

  • fix: app help not working on input -h|--help 0231311

v3.0.3

12 Jul 05:34
Compare
Choose a tag to compare

Change Log

Refactor

  • refactor: refactoring the flags shorts add and help render logic 623e065
  • refactor: refactoring the FlagsOption to FlagsConfig 5295721
  • refactor: refactoring the command flags help render logic ce659b1

Fixed

  • fix: panic when adding hooks to commands 7f0b370

Update

  • up: update the option shorts validate and save logic 1f64ca6
  • up: add a any.go for build on not go1.18 0e1636c
  • up: update some examples demo and some sub pkg readme b883810
  • up: update the flag options help render some logic e7b66d2
  • up: update some logic for alone run command a5d0cc8
  • up: update some flag logic and fix some tests error 08d19ee
  • up: use goutil/testutil/assert instead of the stretchr/testify/assert f1b474e

Other

  • chore: update some logs for run command, fix some unit tests 64b783c
  • chore: update some examle codes and update builtin GenAutoComplete 4d91775
  • chore: update used deps to go.sum 133265b