Commit 78203322
7820332294c3Merged
Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 2 files ยท +1 added ยท ~1 modified
Description
tests: clictx
Signed-off-by: Dmitriy Zhilyaev [email protected]
Details
- Commit
- 7820332294c3
- Parent
- b6a15d8b5368
pkg/clictx/clictx.gomodifiedView file
@@ -23,7 +23,7 @@
2323
for _, f := range c.FlagNames() {2424
g := c.Value(f)2525
log.WithField("name", f).WithField("value", g).Trace("adding flag to action context.Context")26-
ctx = addFlagToContext(ctx, f, g)26+
ctx = AddFlagToContext(ctx, f, g)2727
}2828
2929
ctx = addCLIToContext(ctx, c)@@ -31,7 +31,7 @@
3131
return ctx3232
}3333
34-
func addFlagToContext(ctx context.Context, name string, value any) context.Context {34+
func AddFlagToContext(ctx context.Context, name string, value any) context.Context {3535
return context.WithValue(ctx, flagName(name), value)3636
}3737
pkg/clictx/clictx_test.goaddedView file
Loading diffโฆ