add new list command (#97)

This commit is contained in:
Patrick Devine
2023-07-18 09:09:45 -07:00
committed by GitHub
parent da7ddbb4dc
commit 5bea29f610
10 changed files with 450 additions and 11 deletions

View File

@@ -91,6 +91,15 @@ func (mp ModelPath) GetManifestPath(createDir bool) (string, error) {
return path, nil
}
func GetManifestPath() (string, error) {
home, err := os.UserHomeDir()
if err != nil {
return "", err
}
return filepath.Join(home, ".ollama", "models", "manifests"), nil
}
func GetBlobsPath(digest string) (string, error) {
home, err := os.UserHomeDir()
if err != nil {