You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/pull.go
+2-15Lines changed: 2 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ func init() {
54
54
flags.BoolVar(&pullConfig.Insecure, "insecure", false, "use insecure connection for the pull operation and skip TLS verification")
55
55
flags.StringVar(&pullConfig.Proxy, "proxy", "", "use proxy for the pull operation")
56
56
flags.StringVar(&pullConfig.ExtractDir, "extract-dir", "", "specify the extract dir for extracting the model artifact")
57
+
flags.BoolVar(&pullConfig.ExtractFromRemote, "extract-from-remote", false, "turning on this flag will pull and extract the data from remote registry and no longer store model artifact locally, so user must specify extract-dir as the output directory")
57
58
58
59
iferr:=viper.BindPFlags(flags); err!=nil {
59
60
panic(fmt.Errorf("bind cache pull flags to viper: %w", err))
0 commit comments