| OLD | NEW |
| 1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package main | 5 package cli |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "flag" | 8 "flag" |
| 9 | 9 |
| 10 "github.com/luci/luci-go/common/flag/flagenum" | 10 "github.com/luci/luci-go/common/flag/flagenum" |
| 11 "github.com/luci/luci-go/logdog/client/coordinator" | 11 "github.com/luci/luci-go/logdog/client/coordinator" |
| 12 ) | 12 ) |
| 13 | 13 |
| 14 type trinaryValue coordinator.QueryTrinary | 14 type trinaryValue coordinator.QueryTrinary |
| 15 | 15 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 func (v *trinaryValue) Set(s string) error { | 32 func (v *trinaryValue) Set(s string) error { |
| 33 var tv coordinator.QueryTrinary | 33 var tv coordinator.QueryTrinary |
| 34 if err := trinaryFlagEnum.FlagSet(&tv, s); err != nil { | 34 if err := trinaryFlagEnum.FlagSet(&tv, s); err != nil { |
| 35 return err | 35 return err |
| 36 } | 36 } |
| 37 *v = trinaryValue(tv) | 37 *v = trinaryValue(tv) |
| 38 return nil | 38 return nil |
| 39 } | 39 } |
| OLD | NEW |