Unshadow context package

and consistently name `*cli.Context` vars and method receivers `cCtx`
This commit is contained in:
2022-04-23 22:07:16 -04:00
parent 6033c008f2
commit 9ce946162f
26 changed files with 214 additions and 214 deletions

View File

@@ -165,8 +165,8 @@ func (f *TimestampFlag) Apply(set *flag.FlagSet) error {
}
// Timestamp gets the timestamp from a flag name
func (c *Context) Timestamp(name string) *time.Time {
if fs := c.lookupFlagSet(name); fs != nil {
func (cCtx *Context) Timestamp(name string) *time.Time {
if fs := cCtx.lookupFlagSet(name); fs != nil {
return lookupTimestamp(name, fs)
}
return nil