Utk support for subcommands#5
Conversation
Signed-off-by: Gan Shun Lim <ganshun@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #5 +/- ##
====================================
Coverage 0% 0%
====================================
Files 11 11
Lines 448 467 +19
====================================
- Misses 448 467 +19
Continue to review full report at Codecov.
|
| func (*parseCmd) SetFlags(_ *flag.FlagSet) {} | ||
|
|
||
| func (*parseCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus { | ||
| if len(f.Args()) == 0 { |
There was a problem hiding this comment.
This is all fine, one thought: I once had it suggested to me that if you use f.Args() more than once, you should just do args := f.Args() since the call cost is nontrivial. I don't necessarily agree with this, but thought I'd mention it.
There was a problem hiding this comment.
chris, in case you doing me on this, it was a comment from Adin :-)
The idea is that in the future, you'll do something like utk parse or utk extract <rom> Signed-off-by: Gan Shun Lim <ganshun@gmail.com>
rminnich
left a comment
There was a problem hiding this comment.
ok that's weird I thought I just approved this one.
|
That's cause I just made the change you suggested and pushed again |
Go checks the pointers used, and it is required to follow the rule #5 of "unsafe.Pointer" which requires to convert back to "unsafe.Pointer" no later than in the same line where it was converted to uintptr.
Go checks the pointers used, and it is required to follow the rule #5 of "unsafe.Pointer" which requires to convert back to "unsafe.Pointer" no later than in the same line where it was converted to uintptr.
Go checks the pointers used, and it is required to follow the rule #5 of "unsafe.Pointer" which requires to convert back to "unsafe.Pointer" no later than in the same line where it was converted to uintptr.
Go checks the pointers used, and it is required to follow the rule #5 of "unsafe.Pointer" which requires to convert back to "unsafe.Pointer" no later than in the same line where it was converted to uintptr.
Go checks the pointers used, and it is required to follow the rule #5 of "unsafe.Pointer" which requires to convert back to "unsafe.Pointer" no later than in the same line where it was converted to uintptr.
Go checks the pointers used, and it is required to follow the rule #5 of "unsafe.Pointer" which requires to convert back to "unsafe.Pointer" no later than in the same line where it was converted to uintptr. Signed-off-by: Dmitrii Okunev <xaionaro@meta.com>
Go checks the pointers used, and it is required to follow the rule #5 of "unsafe.Pointer" which requires to convert back to "unsafe.Pointer" no later than in the same line where it was converted to uintptr. Signed-off-by: Dmitrii Okunev <xaionaro@meta.com>
Go checks the pointers used, and it is required to follow the rule #5 of "unsafe.Pointer" which requires to convert back to "unsafe.Pointer" no later than in the same line where it was converted to uintptr. Signed-off-by: Dmitrii Okunev <xaionaro@meta.com>
This allows us to do stuff like utk parse or utk extract in the future.