Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 4b3ad2c

Browse files
committed
Add available template fields in examples as well
1 parent a0930b9 commit 4b3ad2c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cmd/dep/dep

11.6 MB
Binary file not shown.

cmd/dep/status.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import (
2424
"github.com/pkg/errors"
2525
)
2626

27+
const availableTemplateVariables = "ProjectRoot, Constraint, Version, Revision, Latest, and PackageCount."
28+
2729
const statusShortHelp = `Report the status of the project's dependencies`
2830
const statusLongHelp = `
2931
With no arguments, print the status of each dependency of the project.
@@ -43,7 +45,7 @@ print an extended status output for each dependency of the project.
4345
4446
You may use the -f flag to create a custom format for the output of the
4547
dep status command. The available fields you can utilize are as follows:
46-
ProjectRoot, Constraint, Version, Revision, Latest, and PackageCount.
48+
` + availableTemplateVariables + `
4749
4850
Status returns exit code zero if all dependencies are in a "good state".
4951
`
@@ -59,8 +61,8 @@ dep status -f='{{if eq .Constraint "master"}}{{.ProjectRoot}} {{end}}'
5961
6062
Display the list of package names constrained on the master branch.
6163
The -f flag allows you to use Go templates along with it's various
62-
constructs for formating the output data. See -help for available
63-
variables for this flag.
64+
constructs for formating the output data. Available flags are as follows:
65+
` + availableTemplateVariables + `
6466
6567
dep status -json
6668

0 commit comments

Comments
 (0)