Merge pull request #392 from jmorganca/mxyng/version

add version
This commit is contained in:
Michael Yang
2023-08-22 09:50:25 -07:00
committed by GitHub
7 changed files with 47 additions and 36 deletions

View File

@@ -30,6 +30,7 @@ import (
"github.com/jmorganca/ollama/format"
"github.com/jmorganca/ollama/progressbar"
"github.com/jmorganca/ollama/server"
"github.com/jmorganca/ollama/version"
)
func CreateHandler(cmd *cobra.Command, args []string) error {
@@ -731,6 +732,7 @@ func NewCLI() *cobra.Command {
CompletionOptions: cobra.CompletionOptions{
DisableDefaultCmd: true,
},
Version: version.Version,
}
cobra.EnableCommandSorting = false