Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: logdog/client/cli/trinaryFlag.go

Issue 2372703005: LogDog: Split CLI tool into package and main. (Closed)
Patch Set: Fix comment. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « logdog/client/cli/subcommandQuery.go ('k') | logdog/client/cmd/logdog/coordinatorSource.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « logdog/client/cli/subcommandQuery.go ('k') | logdog/client/cmd/logdog/coordinatorSource.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698