Skip to content

Commit

Permalink
Remind future maintainers to update the docs when changing CLI usage
Browse files Browse the repository at this point in the history
We have a copy of the output from running just "terraform" in a page on
the website. It doesn't necessarily need to be kept 100% up to date, since
users can always run the command to get the result from the horses mouth,
but it's nice to keep it somewhat up-to-date to reduce use confusion.
  • Loading branch information
apparentlymart committed Nov 24, 2016
1 parent 3d41f3d commit fef5727
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 35,12 @@ func init() {
Ui: Ui,
}

// The command list is included in the terraform -help
// output, which is in turn included in the docs at
// website/source/docs/commands/index.html.markdown; if you
// add, remove or reclassify commands then consider updating
// that to match.

PlumbingCommands = map[string]struct{}{
"state": struct{}{}, // includes all subcommands
"debug": struct{}{}, // includes all subcommands
Expand Down
3 changes: 3 additions & 0 deletions help.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 28,9 @@ func helpFunc(commands map[string]cli.CommandFactory) string {
}
}

// The output produced by this is included in the docs at
// website/source/docs/commands/index.html.markdown; if you
// change this then consider updating that to match.
helpText := fmt.Sprintf(`
Usage: terraform [--version] [--help] <command> [args]
Expand Down

0 comments on commit fef5727

Please sign in to comment.