Commits
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* No longer use '%v' formatting, dispatch to faster, more specific strconv formatters
* Use the strings.Builder unsafe trick
* Include test coverage gaps
* Add some more benchmarks and reset args state between Parse
* Some quick perf wins
* Lazily initialise the env var map
* Eliminate a range loop in favour of utf8.DecodeRuneInString
* Remove an unneeded slice allocation
* Simplify some type assertion stuff
* Reuse the tabwriter to avoid excess allocations
* Make Flag a pointer type in prep for some future work
* Try out mise as a task runner
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update module go.followtheprocess.codes/hue to v1.1.0
* go mod tidy
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tom Fleet <me@followtheprocess.codes>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Add a completion example and some docs
* Add some more completion test cases
* Fix copy paste typo
* Update release-drafter/release-drafter action to v7
* Fix lint
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tom Fleet <me@followtheprocess.codes>
* Update crazy-max/ghaction-github-labeler action to v6
* Fix lint
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tom Fleet <me@followtheprocess.codes>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Update module go.followtheprocess.codes/snapshot to v0.7.0
* Use the new TextFormatter
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tom Fleet <me@followtheprocess.codes>
* Provide a way of iterating over all flags
* Move flag usage block writing into command.go
* Command now uses the new usage mechanism
* Add Default into a few tests
* Add a test for the help bool special case
* Breaking: Add cli.FlagOption for configuring flags
* Update the demo gifs
* Breaking: Change the Run method signature to pass a context.Context
* Add an example for context cancellation
* Add some more benchmarks and reset args state between Parse
* Some quick perf wins
* Lazily initialise the env var map
* Eliminate a range loop in favour of utf8.DecodeRuneInString
* Remove an unneeded slice allocation
* Simplify some type assertion stuff
* Reuse the tabwriter to avoid excess allocations