MCPcopy
hub / github.com/urfave/cli / String

Method String

flag_duration.go:38–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36func (d *durationValue) Get() any { return time.Duration(*d) }
37
38func (d *durationValue) String() string {
39 return fmt.Sprintf("%v", time.Duration(*d))
40}
41
42func (cmd *Command) Duration(name string) time.Duration {
43 if v, ok := cmd.Value(name).(time.Duration); ok {

Callers 1

ToStringMethod · 0.95

Calls 1

DurationMethod · 0.80

Tested by

no test coverage detected