MCPcopy Create free account
hub / github.com/cli/cli / Set

Method Set

pkg/cmd/codespace/create.go:48–55  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

46}
47
48func (d *NullableDuration) Set(str string) error {
49 duration, err := time.ParseDuration(str)
50 if err != nil {
51 return fmt.Errorf("error parsing duration: %w", err)
52 }
53 d.Duration = &duration
54 return nil
55}
56
57func (d *NullableDuration) Type() string {
58 return "duration"

Callers

nothing calls this directly

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected