chore: add --env-var-override and --port-override flags to local run#5201
chore: add --env-var-override and --port-override flags to local run#5201mergify[bot] merged 23 commits intoaws:mainlinefrom
--env-var-override and --port-override flags to local run#5201Conversation
|
🍕 Here are the new binary sizes!
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## mainline #5201 +/- ##
============================================
+ Coverage 69.50% 69.71% +0.21%
============================================
Files 295 296 +1
Lines 43941 44018 +77
Branches 286 286
============================================
+ Hits 30539 30686 +147
+ Misses 11909 11842 -67
+ Partials 1493 1490 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Lou1415926
left a comment
There was a problem hiding this comment.
LGTM just a question!
| func (p *portOverrides) Type() string { | ||
| return "list" | ||
| } | ||
|
|
||
| func (p *portOverrides) String() string { |
There was a problem hiding this comment.
dumb question: where are they used 👀 !
There was a problem hiding this comment.
honestly a great question - i tried to figure it out but don't understand why String() is called. They are required to implement the interface: https://pkg.go.dev/github.com/spf13/pflag#Value.
Type() is called when you do --help and is printed next to the flag name
String() is called when parsing the flags, but it's never printed anywhere ¯\(ツ)/¯ maybe there's some debugging output or something but i haven't seen it
Builds on top of #5201, the diff will get much smaller once that PR is merged. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.