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

Commit

Permalink
Add available template fields in examples as well
Browse files Browse the repository at this point in the history
  • Loading branch information
zkry committed Jan 25, 2018
1 parent a0930b9 commit 4b3ad2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file added cmd/dep/dep
Binary file not shown.
8 changes: 5 additions & 3 deletions cmd/dep/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (
"github.com/pkg/errors"
)

const availableTemplateVariables = "ProjectRoot, Constraint, Version, Revision, Latest, and PackageCount."

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

0 comments on commit 4b3ad2c

Please sign in to comment.