Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 2368a35

Browse files
committed
package: require tag
Signed-off-by: Dorin Geman <[email protected]>
1 parent 3074cb2 commit 2368a35

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

commands/package.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func newPackagedCmd() *cobra.Command {
2424
var opts packageOptions
2525

2626
c := &cobra.Command{
27-
Use: "package --gguf <path> [--license <path>...] [--context-size <tokens>] [--push] [<tag>]",
27+
Use: "package --gguf <path> [--license <path>...] [--context-size <tokens>] [--push] TAG",
2828
Short: "Package a GGUF file into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified",
2929
Args: func(cmd *cobra.Command, args []string) error {
3030
if len(args) != 1 {
@@ -61,6 +61,7 @@ func newPackagedCmd() *cobra.Command {
6161
return nil
6262
},
6363
RunE: func(cmd *cobra.Command, args []string) error {
64+
opts.tag = args[0]
6465
if err := packageModel(cmd, opts); err != nil {
6566
cmd.PrintErrln("Failed to package model")
6667
return fmt.Errorf("package model: %w", err)

docs/reference/docker_model_package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ short: |
33
Package a GGUF file into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified
44
long: |
55
Package a GGUF file into a Docker model OCI artifact, with optional licenses. The package is sent to the model-runner, unless --push is specified
6-
usage: docker model package --gguf <path> [--license <path>...] [--context-size <tokens>] [--push] [<tag>]
6+
usage: docker model package --gguf <path> [--license <path>...] [--context-size <tokens>] [--push] TAG
77
pname: docker model
88
plink: docker_model.yaml
99
options:

0 commit comments

Comments
 (0)