Skip to content

Commit da04bb4

Browse files
authored
Merge pull request #47 from CarlJi/0627
doc: be consistent and remove noise
2 parents 7980991 + 3de6ec5 commit da04bb4

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

cmd/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Build command will copy the project code and its necessary dependencies to a tem
3434
`,
3535
Example: `
3636
# Build the current binary with cover variables injected. The binary will be generated in the current folder.
37-
goc build
37+
goc build .
3838
3939
# Build the current binary with cover variables injected, and set the registry center to http://127.0.0.1:7777.
4040
goc build --center=http://127.0.0.1:7777

cmd/commonflags.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ var (
1111
mode string
1212
debugGoc bool
1313
buildFlags string
14-
// packages string
15-
appArgs string
1614

1715
goRunExecFlag string
1816
goRunArguments string
@@ -41,7 +39,6 @@ func addBuildFlags(cmdset *pflag.FlagSet) {
4139

4240
func addRunFlags(cmdset *pflag.FlagSet) {
4341
addBuildFlags(cmdset)
44-
cmdset.StringVar(&appArgs, "appargs", "", "specify the application's arguments")
4542
cmdset.StringVar(&goRunExecFlag, "exec", "", "same as -exec flag in 'go run' command")
4643
cmdset.StringVar(&goRunArguments, "arguments", "", "same as 'arguments' in 'go run' command")
4744
// bind to viper

cmd/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Install command will copy the project code and its necessary dependencies to a t
3333
`,
3434
Example: `
3535
# Install all binaries with cover variables injected. The binary will be installed in $GOPATH/bin or $HOME/go/bin if directory existed.
36-
goc install --packages="./..."
36+
goc install ./...
3737
3838
# Install the current binary with cover variables injected, and set the registry center to http://127.0.0.1:7777.
3939
goc install --center=http://127.0.0.1:7777

cmd/run.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ var runCmd = &cobra.Command{
3333
Short: "Run covers and runs the named main Go package",
3434
Long: `Run covers and runs the named main Go package,
3535
It is exactly behave as 'go run .' in addition of some internal goc features.`,
36-
Example: `
36+
Example: `
3737
goc run .
38+
goc run . [--buildflags] [--exec] [--arguments]
3839
`,
3940
Run: func(cmd *cobra.Command, args []string) {
4041
wd, err := os.Getwd()

pkg/github/github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (c *PrComment) GetPrChangedFiles() (files []string, err error) {
165165
func GenCommentContent(commentPrefix string, delta cover.DeltaCovList) string {
166166
var buf bytes.Buffer
167167
table := tablewriter.NewWriter(&buf)
168-
table.SetHeader([]string{"File", "BASE Coverage", "New Coverage", "Delta"})
168+
table.SetHeader([]string{"File", "Base Coverage", "New Coverage", "Delta"})
169169
table.SetAutoFormatHeaders(false)
170170
table.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})
171171
table.SetCenterSeparator("|")

0 commit comments

Comments
 (0)