Skip to content

Commit 0783ca3

Browse files
authored
cli: version to the $ coder header in CLI (#4709)
1 parent 6e06cf1 commit 0783ca3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli/root.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,13 @@ func AGPL() []*cobra.Command {
108108
}
109109

110110
func Root(subcommands []*cobra.Command) *cobra.Command {
111+
fmtLong := `Coder %s — A tool for provisioning self-hosted development environments with Terraform.
112+
`
111113
cmd := &cobra.Command{
112114
Use: "coder",
113115
SilenceErrors: true,
114116
SilenceUsage: true,
115-
Long: `Coder — A tool for provisioning self-hosted development environments with Terraform.
116-
`,
117+
Long: fmt.Sprintf(fmtLong, buildinfo.Version()),
117118
PersistentPreRun: func(cmd *cobra.Command, args []string) {
118119
if cliflag.IsSetBool(cmd, varNoVersionCheck) &&
119120
cliflag.IsSetBool(cmd, varNoFeatureWarning) {

0 commit comments

Comments
 (0)