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

Side by Side Diff: logdog/client/cli/path.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/main.go ('k') | logdog/client/cli/subcommandCat.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 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 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 "github.com/luci/luci-go/common/config" 8 "github.com/luci/luci-go/common/config"
9 "github.com/luci/luci-go/logdog/common/types" 9 "github.com/luci/luci-go/logdog/common/types"
10 ) 10 )
11 11
12 func makeUnifiedPath(project config.ProjectName, path types.StreamPath) string { 12 func makeUnifiedPath(project config.ProjectName, path types.StreamPath) string {
13 val := string(project) 13 val := string(project)
14 if path != "" { 14 if path != "" {
15 val += types.StreamNameSepStr + string(path) 15 val += types.StreamNameSepStr + string(path)
16 } 16 }
17 return val 17 return val
18 } 18 }
OLDNEW
« no previous file with comments | « logdog/client/cli/main.go ('k') | logdog/client/cli/subcommandCat.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698