[PR #3270] [CLOSED] refactor(cmd): distribute commands into root.go, create.go, run.go, etc. #11103

Closed
opened 2026-04-12 23:21:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3270
Author: @igophper
Created: 3/20/2024
Status: Closed

Base: mainHead: opt/refactor_cmd


📝 Commits (1)

  • 0d8f856 refactor(cmd): distribute commands into root.go, create.go, run.go, etc.

📊 Changes

12 files changed (+1025 additions, -916 deletions)

View changed files

📝 cmd/cmd.go (+0 -916)
cmd/copy.go (+34 -0)
cmd/create.go (+215 -0)
cmd/delete.go (+36 -0)
📝 cmd/interactive.go (+76 -0)
cmd/list.go (+56 -0)
cmd/pull.go (+77 -0)
cmd/push.go (+77 -0)
cmd/root.go (+50 -0)
cmd/run.go (+198 -0)
cmd/serve.go (+102 -0)
cmd/show.go (+104 -0)

📄 Description

Previously, all commands were located in a single cmd.go file. This refactor improves the organization and readability of the code by distributing commands into their respective files such as root.go, create.go, run.go, etc.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/3270 **Author:** [@igophper](https://github.com/igophper) **Created:** 3/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `opt/refactor_cmd` --- ### 📝 Commits (1) - [`0d8f856`](https://github.com/ollama/ollama/commit/0d8f8560f84a4782d4ae115b278fbe5977d10d18) refactor(cmd): distribute commands into root.go, create.go, run.go, etc. ### 📊 Changes **12 files changed** (+1025 additions, -916 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+0 -916) ➕ `cmd/copy.go` (+34 -0) ➕ `cmd/create.go` (+215 -0) ➕ `cmd/delete.go` (+36 -0) 📝 `cmd/interactive.go` (+76 -0) ➕ `cmd/list.go` (+56 -0) ➕ `cmd/pull.go` (+77 -0) ➕ `cmd/push.go` (+77 -0) ➕ `cmd/root.go` (+50 -0) ➕ `cmd/run.go` (+198 -0) ➕ `cmd/serve.go` (+102 -0) ➕ `cmd/show.go` (+104 -0) </details> ### 📄 Description Previously, all commands were located in a single cmd.go file. This refactor improves the organization and readability of the code by distributing commands into their respective files such as root.go, create.go, run.go, etc. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:21:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11103