Skip to content

Releases: gookit/gcli

v3.2.4

12 Dec 02:40
ccccd0f
Compare
Choose a tag to compare

Change Log

Fixed

  • 🐛 fix: gflag - fix type name error on render help 0a4a98c

Feature

  • ✨ feat: gflag - add new method FuncOpt() for quick add a func option flag eb7aa3b
  • ✨ feat: gflag - support bind struct field is addressable and implements flag.Value 899f00d
  • ✨ feat: gflag - built in support shortcut option parsing 1dd8c1e

Update

  • 👔 up: gflag - update options init and parse logic 781aadb
  • ♻️ up: gflag - use built in FlagSet instead of flag.FlagSet 8497657
  • 👔 up: gflag - update some util func and tests f66a879

Other

  • build(deps): bump WillAbides/setup-go-faster from 1.8.0 to 1.9.0 (#97) 62a1d1a
  • build(deps): bump golang.org/x/crypto from 0.11.0 to 0.12.0 (#98) f558bdb
  • build(deps): bump WillAbides/setup-go-faster from 1.9.0 to 1.9.1 (#99) 4f25067
  • build(deps): bump WillAbides/setup-go-faster from 1.9.1 to 1.10.0 (#100) 4038651
  • 👔 chore: all - update some tests and example codes 0c0e1b8
  • build(deps): bump WillAbides/setup-go-faster from 1.10.0 to 1.10.1 (#101) d83f4b3
  • build(deps): bump morphy2k/revive-action from 2.5.2 to 2.5.3 (#102) bb3d958
  • build(deps): bump actions/checkout from 3 to 4 (#103) d063172
  • build(deps): bump golang.org/x/crypto from 0.12.0 to 0.13.0 (#104) e015a48
  • build(deps): bump WillAbides/setup-go-faster from 1.10.1 to 1.11.0 (#105) ae201fd
  • build(deps): bump WillAbides/setup-go-faster from 1.11.0 to 1.12.0 (#106) a5257aa
  • build(deps): bump golang.org/x/crypto from 0.13.0 to 0.14.0 (#107) 21a8b74
  • build(deps): bump morphy2k/revive-action from 2.5.3 to 2.5.4 (#109) 2c531c4
  • build(deps): bump golang.org/x/crypto from 0.14.0 to 0.15.0 (#111) 5edab83
  • build(deps): bump golang.org/x/crypto from 0.15.0 to 0.16.0 (#112) 6298be5
  • build(deps): bump WillAbides/setup-go-faster from 1.12.0 to 1.13.0 (#113) c58264e
  • build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0 (#114) 133b509
  • build(deps): bump morphy2k/revive-action from 2.5.4 to 2.5.5 (#116) d67f10b
  • build(deps): bump github.com/gookit/goutil from 0.6.12 to 0.6.15 (#115) 50edc44
  • build(deps): bump morphy2k/revive-action from 2.5.5 to 2.5.6 (#117) 7195338
  • build(deps): bump golang.org/x/crypto from 0.17.0 to 0.18.0 (#118) 27ee58f
  • build(deps): bump WillAbides/setup-go-faster from 1.13.0 to 1.14.0 (#119) cf0370b
  • build(deps): bump golang.org/x/crypto from 0.18.0 to 0.19.0 (#120) df03681
  • build(deps): bump morphy2k/revive-action from 2.5.6 to 2.5.7 (#121) 491555a
  • build(deps): bump golang.org/x/crypto from 0.19.0 to 0.20.0 (#122) bdb9e79
  • build(deps): bump softprops/action-gh-release from 1 to 2 (#124) 9837c3c
  • build(deps): bump golang.org/x/crypto from 0.20.0 to 0.23.0 (#126) 8605874
  • build(deps): bump golang.org/x/crypto from 0.23.0 to 0.24.0 (#127) 9fcbbec
  • build(deps): bump github.com/gookit/goutil from 0.6.15 to 0.6.17 (#137) 756aa86
  • build(deps): bump golang.org/x/crypto from 0.24.0 to 0.31.0 (#139) 69fe2af
  • build(deps): bump morphy2k/revive-action from 2.5.7 to 2.7.1 (#140) ccccd0f

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