cmd/ghcs/main: Add --version flag
- This is built into Cobra the argument parser. Now `ghcs --version` exists. - When we prepare to bump the version, we need to remember to update this value else the Homebrew formula, GitHub releases and the `ghcs --version` output will be mismatched. - Fixes https://github.com/github/ghcs/issues/16.
This commit is contained in:
parent
570a407bac
commit
4582fed1cc
1 changed files with 4 additions and 3 deletions
|
|
@ -16,9 +16,10 @@ func main() {
|
|||
}
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "ghcs",
|
||||
Short: "Codespaces",
|
||||
Long: "Codespaces",
|
||||
Use: "ghcs",
|
||||
Short: "Codespaces",
|
||||
Long: "Codespaces",
|
||||
Version: "0.5.0",
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue