File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ - v2.1.36
4
+
5
+ - added `BuildFrom(structValue,opts...)` to `Creator` interface
6
+ - added new example app `examples/tiny/struct`
7
+ - added new builder `FromStruct` to build the command system from a struct value
8
+ you can write a struct type and pass its value into FromStruct to build root
9
+ command and its subcommands now.
10
+ - fix `RootBuilder()` caused incorrect inCmd (-1)
11
+ - fix a debug call
12
+ - fix `OwnerIsNil` ...
13
+
3
14
- v2.1.35
4
15
5
16
- improved `prompt` examples
Original file line number Diff line number Diff line change 109
109
// }
110
110
// }
111
111
//
112
+ // You can build command system by kinds of forms:
113
+ // - traditional stream calls (`app.Cmd("verbose", "v").Action(onVerbose)`)
114
+ // - concise modes by `[Create]` and cmd/xxcmd.go
115
+ // - use `[Create.FromStruct]` to build cmdsys from a struct value via `[App.FromStruct]`, see example [#example_Create_buildFromStructValue]
116
+ //
112
117
// Getting started from [New] or [Create] function.
113
118
//
114
119
// For more documentation please go and check out https://docs.hedzr.com/cmdr.v2/.
115
120
package cmdr
116
121
117
- const Version = "v2.1.35 " // Version fir hedzr/cmdr/v2
122
+ const Version = "v2.1.36 " // Version fir hedzr/cmdr/v2
You can’t perform that action at this time.
0 commit comments