(value string)
| 127 | func (p *protocolModeFlag) Type() string { return "string" } |
| 128 | |
| 129 | func (p *protocolModeFlag) Set(value string) error { |
| 130 | mode, err := validation.NormalizeProtocolMode(value) |
| 131 | if err != nil { |
| 132 | return fmt.Errorf("normalize protocol: %w", err) |
| 133 | } |
| 134 | *p = protocolModeFlag(protocolMode(gitsync.ProtocolMode(mode))) |
| 135 | return nil |
| 136 | } |
| 137 | |
| 138 | func (m *operationModeFlag) String() string { return string(*m) } |
| 139 | func (m *operationModeFlag) Type() string { return "string" } |