[PR #5509] usage templating #74102

Open
opened 2026-05-05 06:04:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5509
Author: @mxyng
Created: 7/5/2024
Status: 🔄 Open

Base: mainHead: mxyng/environ-2


📝 Commits (1)

  • 8135bff envconfig: usage template

📊 Changes

5 files changed (+275 additions, -177 deletions)

View changed files

📝 cmd/cmd.go (+82 -108)
cmd/usage.gotmpl (+88 -0)
📝 discover/runner.go (+21 -17)
📝 envconfig/config.go (+83 -51)
📝 server/routes.go (+1 -1)

📄 Description

leverage (*cobra.Command).Annotations to hold environment variables


🔄 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/5509 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 7/5/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `mxyng/environ-2` --- ### 📝 Commits (1) - [`8135bff`](https://github.com/ollama/ollama/commit/8135bff40d375beacdf472fa4008dfcafff38e5e) envconfig: usage template ### 📊 Changes **5 files changed** (+275 additions, -177 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+82 -108) ➕ `cmd/usage.gotmpl` (+88 -0) 📝 `discover/runner.go` (+21 -17) 📝 `envconfig/config.go` (+83 -51) 📝 `server/routes.go` (+1 -1) </details> ### 📄 Description leverage `(*cobra.Command).Annotations` to hold environment variables --- <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-05-05 06:04:20 -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#74102