-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCHANGELOG
292 lines (240 loc) · 9.45 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# CHANGELOG
- v2.1.10
- fix a crash in printUsage() on a dyncmd object
- upgrade deps
- security patches
- v2.1.9
- fix `~~tree` printing the root command
- docs
- upgrade deps
- security patches
- v2.1.8
- cmdr: fix command indent (help screen)
- cmdr: remove `pkg/dir` since it moved into `hedzr/is`
- cmdr: update ref to hedzr/is/dir
- cmdr: mv `pkg/dir` into `hedzr/is`
- upgrade deps
- v2.1.7
- downgrade toolchain to go1.23.0
- upgrade deps
- cmdr: review & improve builtins commands and flags
- cmdr: add `OwnerIsRoot()`, `IsRoot()`
- cmdr: improved help screen
- cut overlong titles to a new line
- rename to `printCommandHeading()`, ...
- rename to `printFlagHeading()`, ...
- optimize the gap between short and long title if short is not a single char
- cut off aliases if titles width is greater than tabstop, and move them to the next line
- improved head-like flag, add a new line to remark it
- cmdr: improved head-like flag matching algor to search the parents commands if they own a head-like flag
- cmdr: change to `Flag.GetTitleFlagNamesBy(delimiter string, maxW...int) (title,rest string)`
- cmdr: change to `BaseOpt.GetTitleNames(maxWidth ...int) (title, rest string)`
- v2.1.6
- cmdr: fix calling `finalAction()` twice when redirectTo
- cmdr: fix modified state of peripheral object in store
- cmdr: fix external config file loading and write-back feature
- upgrade deps
- v2.1.5
- lots of improvements and fixes
- cmdr: add a pure `prompt` app (not a cmdr example)
- cmdr: fix unnecessary required flag in head_like.go
- cmdr: implements help-system (part 1)
- update local `SplitCommandString()`
- cmdr: update onAction, passing writer into builtin action handlers
- cmdr: fix helpScreenWriter/debugScreenWriter
- cmdr: relayout postProcess()/preProcess()
- update .vscode/launch.json
- upgrade deps
- v2.1.3
- lots of improvements and fixes
- cmdr: split `Painter` interface from `helpPrinter`
- cmdr: implements core algor for manpage output
- cmdr: implements `showHelpScreenAsMan()`
- cmdr: improve builtins commands
- cmdr: improve `showVersion()`
- cmdr: improve `showBuildInfo()`
- cmdr: add `StripOrderPrefix()`
- cmdr: add `PipeToReader()`
- cmdr: add `lite-app.json` for `examples/tiny/lite` app
- cmdr: load `app.json` and `.app.json` with internal tiny json loader
- cmdr: fix `EnsureTree()` call in `Build()` at first time
- v2.1.2
- lots of improvements and fixes
- fix dockerfile
- fix InvokeProc/InvokeShell
- fix `OnEvaluateSubCommandsFromConfig`
- added WithOnShowVersion, ...
- added conf.GitDesc, BuilderComment
- implements onPassThruCharMatched, ...
- implements onShowVersion, ...
- improved dyncmd (alias) feature
- cleanup
- v2.1.1
- lots of improvements and fixes
- add `.LeadingPlusSign()` to negatable testing
- fix litecmd.go to fit for `cli.Cmd`
- add `.OnEvaluateSubCommandsFromConfig()` to `jumpCmd` - for cmdr-tests/examples/concise app
- cmdr: fix `GetTitleNamesArrayMainly()` by prefered extracting name field
- cmdr: fix `GetTitleNamesArray()` by adding missed `shorts` titles
- cmdr: fix `CmdS.EqualTo()`
- cmdr: fix `BaseOpt.ShotTitle()`
- cmdr: add `OnEvaluateSubCommandsFromConfig()`
- cmdr: add `LeadingPlusSign()`
- fix CmdS. `AddSubCommand` & `AddFlag`
- cmdr: add `negatable` flag (auto `--no-XXX`)
- cmdr: improved `WithPeripherals(peripherals PeripheralMap)`
- cmdr: implement PresetCmdLines
- cmdr: implement InvokeProc and InvokeShell
- cmdr: fix checkValidArgs
- cmdr: fix checkRequired
- cmdr: exposed `InvokeProc/Shell/Shell/PresetCmdLines`
- cmdr: add `To()`
- cmdr: add Flag.`GetTriggerredTitle()` (=`GetHitStr()`)
- cmdr: add `ParsedState()`
- cmdr: add `TestStoreGetSectionFrom()`
- cmdr: add `OnAction` to `Creator`
- cmdr: add `DottedPathToCommandOrFlag()`
- cmdr: add `ActionDefault` to `ActionEnum`
- fixed/improved `CmdS.SubCmdBy()/FlagBy()` Hedzr
- improved examples/
- add examples/cmd/preset-cmdline.go
- add examples/cmd/invoke.go
- add example app: valid-args
- add example app: required
- add example app: external-editor
- upgrade deps
- security patches
- v2.1.0
- upgrade toolchain to go1.23.7
- lots of improvements and fixes
- fix typo in doc of `WithBuilders`
- fix test definition
- fix `Shorts()` returned unique items
- exposed more package-level functions
- add test `TestBaseOpt_GetDottedPath`
- more walk functions
- some subtests for parsing duration, parse int,float,complex, ...
- make ActionEnum constants public too
- make `dottedPathToCommandOrFlagG` public (as `DottedPathToCommandOrFlag(dottedPath)`
- cmdr: define group name constants
- cmdr: add `Error` and `Recycle()` to `Runner`
- cmdr: add `DoBuiltinAction` to `Runner`
- cmdr: add App.OnAction
- cmdr: help-screen: fix the right part alignment
- cmdr: help-screen: fix no `Flags:` title when a cmd owns all hidden flags
- cmdr: help-screen: fix no `Commands:` title when a cmd owns all hidden subcmds
- cmdr: help-screen: improved display style of required flag, valid-args flag
- cmdr: help-screen: improved display style of header line
- cmdr: help-screen: improved display style of head-like flag
- cmdr: help-screen: improved display style if a flag has no short title
- cmdr: toggle-group: fix to update into Stpre when matched
- cmdr: toggle-group: fix to update default matched value
- cmdr: help-screen: improved display style of redirect-to command
- cmdr: help-screen: improved display style of required flag
- cmdr: help-screen: improved display style of required flag, valid-args flag
- cmdr: process `TransferIntoStore` interface to support default toggle-group value, and other cases for future
- cmdr: defined constant `cli.CommandsStoreKey` = "app.cmd"
- cmdr: builder: fix addCommand - avoid loop ref by insert itself as a child
- cmdr: builder: added WithOpts(opts...)
- cmdr: builder: added `RootBuilder(func(cli.CommandBuilder))`
- cmdr: added `cmdr.Create(...)` for creating a new app, a replacement for `New()`
- added CmdS/Cmd.`IsDynamicCommandsLoading()` & `IsDynamicFlagsLoading()`
- improved OnEvalSubcommands `Info` log line to `Verbose`
- improved Flag.SetEnvVars to ignore empty string
- improved godoc for flagbuilder.go
- improved godoc for `RedirectTo`...
- cli/worker: builtins: `help` command, removed `usage` alias name
- cli/worker: builtins: `version-sim` command, removed `version-simulate` alias name
- cli: added `CmdAdder` interface
- cli: added `SubCmdBy(longName)` and `FlagBy(longName)` to find them by title
- CmdS: exclude duplicated insertion
- predefined envvars: added `$EXE`, `$EXE_DIR`
- move out cli/examples to top level
- help-screen: record last group name to improve printing list (esp for some hidden items at first of a group)
- help-screen: expand env vars for the strings
- help-screen: colLeftTabbedWidth 56 -> 46, decrease it
- help-screen: added `printNotes()`, in printing redirect-to feature
- builder: Info(): added some blank lines
- other fixes and improvements
- more docs
- more examples
- remove unused file and cleanup
- upgrade deps
- security patch
- v2.0.17
- upgrade deps
- security patch
- v2.0.16
- upgrade deps
- security patch
- v2.0.15
- upgrade deps
- security patch
- v2.0.13
- upgrade deps
- security patch
- fixed ext file location moved
- added TasksParsed and TasksPostCleanup
- v2.0.11
- upgrade deps
- bugs fixed
- safe guard while cmdr not parsed
- v2.0.10
- upgrade deps
- bugs fixed
- safer api (ParsedState) even if cmdr.Run not invoked yet
- v2.0.10
- security patches
- bugs fixed
- improved `Description(...)`, `Examples(...)`
- shorten default tail-line
- update litecmd.go
- v2.0.9
- security patches
- bugs fixed
- uniform Store() & CmdStore() apis: `Set()` and `Store()`
- change `loader.Load`
- removed `exec` subpackage since it had been removed to `hedzr/is`
- fix bindOpts to detect user's Args via `WithArgs(...)`
- prevent internal jsonLoaderS's file not exists error
- fixed `ForFileMax` to return errors
- update tiny app / sample codes
- add `LoadedSources`
- add `VarLogDir`
- fix `VarRunDir`
- add `app.SetDesc()`
- add `app.Description()`
- add auto-env-vars-bindings feature
- fix building on windows
- v2.0.8
- fixed help screen, the missing envvars list
- fixed dirs.VarRunDir, ...
- fixed dyn-commands
- v2.0.7
- update deps
- security patches
- bugs fixed
- new features added
- v2.0.5
- update deps
- security patches
- v2.0.3
- split loaders as a standalone repo
- split examples and tests to standalone
- update deps
- fix bugs
- v2.0.2
- remove dep to loaders/, this will reduce more 3rd-party libs deps from main module
- more tunes for APIs
- v2.0.1
- fix/improve map -> struct, from hedzr/store
- more tests, more docs
- slight corrections
- v2.0.0
initial commit
- integrated with store.Store
- preProcess, parse, and exec
- help screen, external editor, try parse value, atoa subpackage
- mutual exclusive, just once, prerequisites, circuit break
- sbom, --config, debug info screen
a (string) to any (type) - To convert a string to an exact value according to the given meme.