All Versions
48
Latest Version
Avg Release Cycle
12 days
Latest Release
1459 days ago
Changelog History
Page 4
Changelog History
Page 4
-
v1.6.18 Changes
January 04, 2020- added:
WithOnSwitchCharHit
,WithOnPassThruCharHit
- bug fixed
- reviewing and refactoring
- added:
-
v1.6.17 Changes
December 30, 2019better supports to
flag
child package and migrating from stdlineflag
.
supports to shell prompt mode, see also new release ofcmdr-http2
, which demostrates how to integrate cmdr with go-prompt.Match(cmdline, opts...)
: match the arguments line (no os.Args[0]).WithNoCommandAction(bool)
-
v1.6.15 Changes
December 27, 2019- patch to fix errors package
-
v1.6.13 Changes
December 26, 2019- bugs
- Added
WithOptionMergeModifying
,WithOptionModifying
Now the changing/merging events could be hooked with a top-level watching point. - Added
WithUnhandledErrorHandler()
to capture panics if necessary
-
v1.6.12
December 24, 2019 -
v1.6.11 Changes
December 22, 2019- bugs fixed
- fixed the group of built-in cmds/flags,
- for sequence
-v5 -v
, the valid short option-v5
will be reported ascan't be found
,- infinite loop for parsing tight short flags
- for
GetStringR(keyPath, defaultValue)
, defaultValue can't applied to the key if it has an empty string value. - ...
apis break: These apis adds default value as parameter, such as
NewBool(bool)...
now, instead ofNewBool()
:NewBool(bool)
,NewString(string)
,NewStringSlice([]string)
,NewIntSlice([]int)
,NewInt(int)
,NewUint(uint)
,NewInt64(int64)
,NewUint64(uint64)
,NewFloat32(float32)
,NewFloat64(float64)
,NewDuration(time.Duration)
,
adds
WithHelpTailLine(line)
for the customizable dim tail line
- bugs fixed
-
v1.6.9 Changes
December 10, 2019- Adds
WithWatchMainConfigFileToo(bool)
- v1.6.8 for a nacl bug
- Adds
PressEnterToContinue()
,PressAnyKeyToContinue()
- Adds
StripQuotes(s)
,StripPrefix(s,p)
- Fluent API: Since v1.6.9, deprecated
cmdopt.NewFlag(flagType)
will be replaced withcmdopt.NewFlagV(defaultValue)
; singleflagopt.Placeholder(str)
available too. Flag.EnvVars
be available now. AndnewFlagOpt.EnvKeys(keys...)
with same effect in Fluent API style.
- Adds
- bugs fixed (better
InTesting()
)
- Adds
-
v1.6.8
December 05, 2019 -
v1.6.7 Changes
November 16, 2019v1.6.7
TrapSignalEnh()
andTrapSignal()
, andSignalQuitSignal
,...InDebugging()
, isdelve (refer to here) - To use it, add-tags=delve
:
go build -tags=delve cli/main.go go run -tags=delve cli/main.go --help
- example/fluent: howto attach
--trace
GetStringNoExapndXxx()
for string option value extraction (no envvar expanding)- more enhancements of Fluent API:
ToCommand
,ToFlag
,AttachToxxx
- for
~~debug
:
bin/fluent --help ~~debug --raw --env --more
--raw
: dump option value with golang format, without envvar expanding--env
: dump environment inside app--more
: other information dump
-
v1.6.5 Changes
November 06, 2019- v1.6.5 - logex integration