|
29 | 29 | Use:"server",
|
30 | 30 | Short:"GitHub MCP Server",
|
31 | 31 | Long:`A GitHub MCP server that handles various tools and resources.`,
|
32 |
| -Version:fmt.Sprintf("%s (%s) %s",version,commit,date), |
| 32 | +Version:fmt.Sprintf("Version: %s\nCommit: %s\nBuild Date: %s",version,commit,date), |
33 | 33 | }
|
34 | 34 |
|
35 | 35 | stdioCmd=&cobra.Command{
|
|
65 | 65 | funcinit() {
|
66 | 66 | cobra.OnInitialize(initConfig)
|
67 | 67 |
|
| 68 | +rootCmd.SetVersionTemplate("{{.Short}}\n{{.Version}}\n") |
| 69 | + |
68 | 70 | // Add global flags that will be shared by all commands
|
69 | 71 | rootCmd.PersistentFlags().StringSlice("toolsets",github.DefaultTools,"An optional comma separated list of groups of tools to allow, defaults to enabling all")
|
70 | 72 | rootCmd.PersistentFlags().Bool("dynamic-toolsets",false,"Enable dynamic toolsets")
|
|