Skip to content

Commit 1f513f8

Browse files
committed
Grammar etc
1 parent 2801a6c commit 1f513f8

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

klog/app/cli/index.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
kc "github.com/jotaen/kong-completion"
99
)
1010

11-
var INTRO_SUMMARY = "command-line tool for time tracking in a human-readable, plain-text file format.\nSee " + KLOG_WEBSITE_URL + " for documentation."
11+
var INTRO_SUMMARY = "klog is a command-line tool for time tracking in a human-readable, plain-text file format.\nSee " + KLOG_WEBSITE_URL + " for documentation.\n"
1212

1313
// Guideline for help texts and descriptions:
1414
// - Command and flag descriptions are phrased in imperative style, and they
@@ -56,8 +56,7 @@ type Default struct {
5656
}
5757

5858
func (opt *Default) Help() string {
59-
return `
60-
klog is ` + INTRO_SUMMARY + `
59+
return INTRO_SUMMARY + `
6160
6261
Time-tracking data is stored in files ending in the '.klg' extension.
6362
You can use the subcommands listed below to evaluate, manipulate and manage your files.
@@ -82,7 +81,6 @@ func (opt *Default) Run(ctx app.Context) app.Error {
8281
versionCmd := Version{}
8382
return versionCmd.Run(ctx)
8483
}
85-
ctx.Print("klog: " + INTRO_SUMMARY + "\n")
86-
ctx.Print("Run 'klog --help' to learn usage.\n")
84+
ctx.Print(INTRO_SUMMARY)
8785
return nil
8886
}

klog/app/cli/info.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ type Info struct {
1111
}
1212

1313
func (opt *Info) Run(ctx app.Context) app.Error {
14-
//ctx.Print(ctx.KlogConfigFolder().Path() + "\n")
1514
if opt.Spec {
1615
ctx.Print(ctx.Meta().Specification + "\n")
1716
} else if opt.License {
1817
ctx.Print(ctx.Meta().License + "\n")
1918
} else if opt.About {
20-
ctx.Print("klog is a " + INTRO_SUMMARY + "\n")
19+
ctx.Print(INTRO_SUMMARY)
2120
} else {
2221
ctx.Print("Use --spec or --license\n")
2322
}

0 commit comments

Comments
 (0)