Skip to content

Commit e69baed

Browse files
committed
add version to --help
1 parent 32d4dec commit e69baed

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*.dylib
77
que.exe
88

9+
# Ignore que binary in root directory only (not subfolders like cmd/que/)
10+
/que
11+
912
# Test binary, built with `go test -c`
1013
*.test
1114

cmd/que/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ var (
3232

3333
func main() {
3434
rootCmd := &cobra.Command{
35-
Use: "que",
36-
Short: "The pipe-able DevOps assistant",
37-
Long: "Que is a CLI utility that analyzes logs and errors from stdin using LLMs to suggest fixes.",
38-
RunE: runQue,
35+
Use: "que",
36+
Short: "The pipe-able DevOps assistant",
37+
Long: fmt.Sprintf("Que is a CLI utility that analyzes logs and errors from stdin using LLMs to suggest fixes.\n\nVersion: %s", Version),
38+
Version: Version,
39+
RunE: runQue,
3940
}
4041

4142
rootCmd.Flags().StringVarP(&providerFlag, "provider", "p", "", "LLM provider to use (openai, claude)")

0 commit comments

Comments
 (0)