Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func init() {
flags.BoolVar(&attachConfig.Config, "config", false, "turning on this flag will overwrite model artifact config layer")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache list flags to viper: %w", err))
panic(fmt.Errorf("bind attach flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func init() {
flags.BoolVar(&buildConfig.NoCreationTime, "no-creation-time", false, "turning on this flag will not set createdAt in the config, which will be helpful for repeated builds")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache list flags to viper: %w", err))
panic(fmt.Errorf("bind build flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func init() {
flags.IntVar(&extractConfig.Concurrency, "concurrency", extractConfig.Concurrency, "specify the concurrency for extracting the model artifact")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache extract flags to viper: %w", err))
panic(fmt.Errorf("bind extract flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func init() {
flags.StringVar(&fetchConfig.DragonflyEndpoint, "dragonfly-endpoint", "", "specify the dragonfly endpoint for the pull operation, which will download and hardlink the blob by dragonfly GRPC service.")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache pull flags to viper: %w", err))
panic(fmt.Errorf("bind fetch flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func init() {
flags.BoolVar(&inspectConfig.Config, "config", false, "inspect the config of the model artifact")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache inspect flags to viper: %w", err))
panic(fmt.Errorf("bind inspect flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func init() {
flags := listCmd.Flags()

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache list flags to viper: %w", err))
panic(fmt.Errorf("bind list flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func init() {
flags.BoolVar(&loginConfig.Insecure, "insecure", false, "Allow insecure connections to registry")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache login flags to viper: %w", err))
panic(fmt.Errorf("bind login flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func init() {
flags := logoutCmd.Flags()

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache logout flags to viper: %w", err))
panic(fmt.Errorf("bind logout flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/modelfile/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func init() {
flags.MarkHidden("ignore-unrecognized-file-types")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache list flags to viper: %w", err))
panic(fmt.Errorf("bind generate flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func init() {
flags.BoolVar(&pruneConfig.RemoveUntagged, "remove-untagged", true, "remove untagged manifests")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache rm flags to viper: %w", err))
panic(fmt.Errorf("bind prune flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func init() {
flags.StringVar(&pullConfig.DragonflyEndpoint, "dragonfly-endpoint", "", "specify the dragonfly endpoint for the pull operation, which will download and hardlink the blob by dragonfly GRPC service, this mode requires extract-from-remote must be true")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache pull flags to viper: %w", err))
panic(fmt.Errorf("bind pull flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func init() {
flags.MarkHidden("nydusify")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache push flags to viper: %w", err))
panic(fmt.Errorf("bind push flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func init() {
flags := rmCmd.Flags()

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache rm flags to viper: %w", err))
panic(fmt.Errorf("bind rm flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func init() {
flags := tagCmd.Flags()

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache tag flags to viper: %w", err))
panic(fmt.Errorf("bind tag flags to viper: %w", err))
}
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func init() {
flags.StringVar(&uploadConfig.DestinationDir, "destination-dir", "", "destination directory for the uploaded file should be specified as a relative path; by default, it will match the original directory of the uploaded file")

if err := viper.BindPFlags(flags); err != nil {
panic(fmt.Errorf("bind cache list flags to viper: %w", err))
panic(fmt.Errorf("bind upload flags to viper: %w", err))
}
}

Expand Down
Loading