HellPot NextGen#163
Draft
yunginnanet wants to merge 50 commits intomainfrom
Draft
Conversation
…zche While I do think all bots enjoy Nietzche (who doesn't?), I think we should take a stance to educate them. What better way than to be able to choose from any book! Personal suggestions include: - The Sorrows of Young Werther by Goethe - Any political manifesto - The Declaration of Independence etc. etc.
This removes globals from `heffalumpt/`, which are hard to reason about, easy to get wrong, and should not be created if they are never used. A possible drawbacks is if you would create multiple new defaults, but this should never be the case.
This prints the short variants (like `-c` for `--config`) in the help. Also fixes bug where only `-h` flag works, not `--help`.
additionally: - fix `-c` flag - make main package test better
Owner
Author
yunginnanet
commented
Jul 1, 2024
| os.Exit(2) | ||
| } | ||
|
|
||
| for defaultKey, defaultVal := range Defaults.val { |
Owner
Author
There was a problem hiding this comment.
Noting (for myself even): I was doing this here because of some problematic behavior when it comes to order of initialization and overrides when it comes to CLI vs defaults vs environment variables vs toml config
Bumps [github.com/knadh/koanf/providers/file](https://github.com/knadh/koanf) from 0.1.0 to 1.0.0. - [Release notes](https://github.com/knadh/koanf/releases) - [Commits](knadh/koanf@v0.1.0...v1.0.0) --- updated-dependencies: - dependency-name: github.com/knadh/koanf/providers/file dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* Bump github.com/fasthttp/router from 1.5.1 to 1.5.2 Bumps [github.com/fasthttp/router](https://github.com/fasthttp/router) from 1.5.1 to 1.5.2. - [Release notes](https://github.com/fasthttp/router/releases) - [Commits](fasthttp/router@v1.5.1...v1.5.2) --- updated-dependencies: - dependency-name: github.com/fasthttp/router dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix (CI): strange CI failure * Bump git.tcp.direct/kayos/common from 0.9.7 to 0.9.9 Bumps git.tcp.direct/kayos/common from 0.9.7 to 0.9.9. --- updated-dependencies: - dependency-name: git.tcp.direct/kayos/common dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump golang.org/x/term from 0.21.0 to 0.22.0 Bumps [golang.org/x/term](https://github.com/golang/term) from 0.21.0 to 0.22.0. - [Commits](golang/term@v0.21.0...v0.22.0) --- updated-dependencies: - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix: closes GH #164 * Security: Resolve gosec G300 CWE-276 file perm, fixes #164 * Chore(deps): Bump git.tcp.direct/kayos/common from 0.9.9 to 1.0.0 Bumps git.tcp.direct/kayos/common from 0.9.9 to 1.0.0. --- updated-dependencies: - dependency-name: git.tcp.direct/kayos/common dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix typo * Update Dockerfile Update Go version to 1.21 * Chore(deps): Bump github.com/knadh/koanf/providers/file Bumps [github.com/knadh/koanf/providers/file](https://github.com/knadh/koanf) from 1.0.0 to 1.1.0. - [Release notes](https://github.com/knadh/koanf/releases) - [Commits](knadh/koanf@v1.0.0...v1.1.0) --- updated-dependencies: - dependency-name: github.com/knadh/koanf/providers/file dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Chore(deps): Bump golang.org/x/term from 0.22.0 to 0.23.0 Bumps [golang.org/x/term](https://github.com/golang/term) from 0.22.0 to 0.23.0. - [Commits](golang/term@v0.22.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Security: resolve gosec G115 (CWE-190) * Chore(deps): Bump wangyoucao577/go-release-action from 1.51 to 1.52 Bumps [wangyoucao577/go-release-action](https://github.com/wangyoucao577/go-release-action) from 1.51 to 1.52. - [Release notes](https://github.com/wangyoucao577/go-release-action/releases) - [Commits](wangyoucao577/go-release-action@v1.51...v1.52) --- updated-dependencies: - dependency-name: wangyoucao577/go-release-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Dependabot: batch updates * Chore(deps): Bump the deps group with 4 updates Bumps the deps group with 4 updates: [github.com/knadh/koanf/providers/env](https://github.com/knadh/koanf), [github.com/knadh/koanf/providers/file](https://github.com/knadh/koanf), [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) and [golang.org/x/term](https://github.com/golang/term). Updates `github.com/knadh/koanf/providers/env` from 0.1.0 to 1.0.0 - [Release notes](https://github.com/knadh/koanf/releases) - [Commits](knadh/koanf@v0.1.0...v1.0.0) Updates `github.com/knadh/koanf/providers/file` from 1.1.0 to 1.1.2 - [Release notes](https://github.com/knadh/koanf/releases) - [Commits](knadh/koanf@v1.1.0...providers/file/v1.1.2) Updates `github.com/valyala/fasthttp` from 1.55.0 to 1.56.0 - [Release notes](https://github.com/valyala/fasthttp/releases) - [Commits](valyala/fasthttp@v1.55.0...v1.56.0) Updates `golang.org/x/term` from 0.23.0 to 0.25.0 - [Commits](golang/term@v0.23.0...v0.25.0) --- updated-dependencies: - dependency-name: github.com/knadh/koanf/providers/env dependency-type: direct:production update-type: version-update:semver-major dependency-group: deps - dependency-name: github.com/knadh/koanf/providers/file dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: github.com/valyala/fasthttp dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Chore(deps): Bump the deps group across 1 directory with 3 updates Bumps the deps group with 3 updates in the / directory: [github.com/knadh/koanf/v2](https://github.com/knadh/koanf), [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) and [golang.org/x/term](https://github.com/golang/term). Updates `github.com/knadh/koanf/v2` from 2.1.1 to 2.1.2 - [Release notes](https://github.com/knadh/koanf/releases) - [Commits](knadh/koanf@v2.1.1...v2.1.2) Updates `github.com/valyala/fasthttp` from 1.56.0 to 1.57.0 - [Release notes](https://github.com/valyala/fasthttp/releases) - [Commits](valyala/fasthttp@v1.56.0...v1.57.0) Updates `golang.org/x/term` from 0.25.0 to 0.26.0 - [Commits](golang/term@v0.25.0...v0.26.0) --- updated-dependencies: - dependency-name: github.com/knadh/koanf/v2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: github.com/valyala/fasthttp dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Chore(deps): Bump the deps group across 1 directory with 3 updates Bumps the deps group with 3 updates in the / directory: [github.com/fasthttp/router](https://github.com/fasthttp/router), [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) and [golang.org/x/term](https://github.com/golang/term). Updates `github.com/fasthttp/router` from 1.5.2 to 1.5.3 - [Release notes](https://github.com/fasthttp/router/releases) - [Commits](fasthttp/router@v1.5.2...v1.5.3) Updates `github.com/valyala/fasthttp` from 1.57.0 to 1.58.0 - [Release notes](https://github.com/valyala/fasthttp/releases) - [Commits](valyala/fasthttp@v1.57.0...v1.58.0) Updates `golang.org/x/term` from 0.26.0 to 0.27.0 - [Commits](golang/term@v0.26.0...v0.27.0) --- updated-dependencies: - dependency-name: github.com/fasthttp/router dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: github.com/valyala/fasthttp dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Chore(deps): Bump wangyoucao577/go-release-action in the deps group Bumps the deps group with 1 update: [wangyoucao577/go-release-action](https://github.com/wangyoucao577/go-release-action). Updates `wangyoucao577/go-release-action` from 1.52 to 1.53 - [Release notes](https://github.com/wangyoucao577/go-release-action/releases) - [Commits](wangyoucao577/go-release-action@v1.52...v1.53) --- updated-dependencies: - dependency-name: wangyoucao577/go-release-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Chore(deps): Bump github.com/fasthttp/router in the deps group Bumps the deps group with 1 update: [github.com/fasthttp/router](https://github.com/fasthttp/router). Updates `github.com/fasthttp/router` from 1.5.3 to 1.5.4 - [Release notes](https://github.com/fasthttp/router/releases) - [Commits](fasthttp/router@v1.5.3...v1.5.4) --- updated-dependencies: - dependency-name: github.com/fasthttp/router dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Chore(deps): Bump golang.org/x/term in the deps group Bumps the deps group with 1 update: [golang.org/x/term](https://github.com/golang/term). Updates `golang.org/x/term` from 0.27.0 to 0.28.0 - [Commits](golang/term@v0.27.0...v0.28.0) --- updated-dependencies: - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Chore(deps): Bump the deps group across 1 directory with 2 updates Bumps the deps group with 2 updates in the / directory: [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) and [golang.org/x/term](https://github.com/golang/term). Updates `github.com/valyala/fasthttp` from 1.58.0 to 1.59.0 - [Release notes](https://github.com/valyala/fasthttp/releases) - [Commits](valyala/fasthttp@v1.58.0...v1.59.0) Updates `golang.org/x/term` from 0.28.0 to 0.29.0 - [Commits](golang/term@v0.28.0...v0.29.0) --- updated-dependencies: - dependency-name: github.com/valyala/fasthttp dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> * Chore(deps): Bump golang.org/x/term in the deps group Bumps the deps group with 1 update: [golang.org/x/term](https://github.com/golang/term). Updates `golang.org/x/term` from 0.29.0 to 0.30.0 - [Commits](golang/term@v0.29.0...v0.30.0) --- updated-dependencies: - dependency-name: golang.org/x/term dependency-type: direct:production update-type: version-update:semver-minor dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lorenzo Sapora <25519274+LorenzoSapora@users.noreply.github.com> Co-authored-by: Emil Eriksson <8700261+ginger51011@users.noreply.github.com> Co-authored-by: Tim E <fowlmouth@users.noreply.github.com>
(cherry picked from commit e74a9f78db5f6ff805924ba598ffea325a0d8f96) Signed-off-by: kayos <kayos@tcp.direct>
(cherry picked from commit e74a9f78db5f6ff805924ba598ffea325a0d8f96) Signed-off-by: kayos <kayos@tcp.direct>
(cherry picked from commit 5ff474a) Signed-off-by: kayos <kayos@tcp.direct>
(cherry picked from commit be3a7d8) Signed-off-by: kayos <kayos@tcp.direct>
0fa2eea to
2da439c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Overview
I accidentally a whole
coca cola bottleHellPotThis really is essentially a rewrite.
The only thing that remains untouched more or less is the heffalump core.This should resolve countless idiosyncrasies in configuration behavior.
Improvements
New Features
strings.Containsmatch functionalityNew features by
are scheduled to hitch a ride, pending further review and testing.
Slimfast
Further slimming of dependencies
Issues resolved