MCPcopy
hub / github.com/github/git-sizer / Set

Method Set

sizes/output.go:347–359  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

345}
346
347func (n *NameStyle) Set(s string) error {
348 switch s {
349 case "none":
350 *n = NameStyleNone
351 case "hash", "sha-1", "sha1":
352 *n = NameStyleHash
353 case "full":
354 *n = NameStyleFull
355 default:
356 return fmt.Errorf("not a valid name style: %v", s)
357 }
358 return nil
359}
360
361func (n *NameStyle) Type() string {
362 return "nameStyle"

Callers 1

mainImplementationFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected