Skip to content

Commit

Permalink
bump to v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Mar 30, 2024
1 parent 3bacf6a commit bbcde82
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
17 changes: 11 additions & 6 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# CHANGELOG

- 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
- 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.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ There are many dirty codes in the cmdr.v1 which cannot be refactored as well. It
The passing winter, we did rewrite the cmdr.v2 to keep it clean and absorbed in parsing and dispatching.
Some abilities were removed and relayouted to new modules.
That's why the `Option Store` has been split as a standalone module [hedzr/store](https://github.com/hedzr/store)[^1].
A faster and colorful slog-like logger has been implemented freshly as [hedzr/logg](https://github.com/hedzr/logg).
[hedzr/evendeep](https://github.com/hedzr/evendeep) provides a deep fully-functional object copy tool. It helps to deep copy some internal objects easily. It is also ready for you.
[hedzr/is](https://github.com/hedzr/is) is an environment detecting framework with many out-of-the-box detectors, such as `is.InTesting` and `is.InDebugging`.
A faster and colorful slog-like logger has been implemented freshly as [hedzr/logg](https://github.com/hedzr/logg)[^3].
[hedzr/evendeep](https://github.com/hedzr/evendeep)[^2] provides a deep fully-functional object copy tool. It helps to deep copy some internal objects easily. It is also ready for you.
[hedzr/is](https://github.com/hedzr/is)[^4] is an environment detecting framework with many out-of-the-box detectors, such as `is.InTesting` and `is.InDebugging`.

Anyway, the whole supply chain painted:

Expand Down Expand Up @@ -95,13 +95,20 @@ v2 is in earlier state but the baseline is stable:


[^1]: `hedzr/store` is a high-performance configure management library
[^2]: `hedzr/evendeep` offers a customizable deepcopy tool to you. There are also deepequal, deepdiff tools in it.
[^3]: `hedzr/logg` provides a slog like and colorful logging library
[^4]: `hedzr/is` is a basic environ detectors library

More minor details need to be evaluated and reimplemented if it's still meaningful in v2.

## History

v2 is staying in earlier state:

- Latest: v2.0.1
- following our direct dependencies to fix/improve map -> struct converter so that we can:
- improved the performance `GetSectionFrom`
- remove direct dep to yåml.v3, so we haven't any 3rd-party direct deps now, in the main module.
- Full list: [CHANGELOG](https://github.com/hedzr/cmdr/blob/master/CHANGELOG)

## Guide
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package cmdr

const Version = "v2.0.0" // Version fir hedzr/cmdr/v2
const Version = "v2.0.1" // Version fir hedzr/cmdr/v2
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ go 1.21

// replace github.com/hedzr/go-cabin/v2 => ../libs.cabin

replace github.com/hedzr/cmdr/v2/loaders => ./loaders
// replace github.com/hedzr/cmdr/v2/loaders => ./loaders

// replace github.com/hedzr/store/codecs/hcl => ../libs.store/codecs/hcl

Expand All @@ -53,7 +53,6 @@ replace github.com/hedzr/cmdr/v2/loaders => ./loaders
// replace github.com/hedzr/store/providers/maps => ../libs.store/providers/maps

require (
github.com/hedzr/cmdr/v2/loaders v0.0.0-00010101000000-000000000000
github.com/hedzr/evendeep v1.1.7
github.com/hedzr/is v0.5.18
github.com/hedzr/logg v0.5.18
Expand Down

0 comments on commit bbcde82

Please sign in to comment.