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: cli/cmd/cluster.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,7 @@ var _downCmd = &cobra.Command{
231
231
exit.Error(err)
232
232
}
233
233
234
-
prompt.YesOrExit(fmt.Sprintf("your cluster (%s in %s) will be spun down and all apis will be deleted, are you sure you want to continue?", *accessConfig.ClusterName, *accessConfig.Region), "")
234
+
prompt.YesOrExit(fmt.Sprintf("your cluster (%s in %s) will be spun down and all apis will be deleted, are you sure you want to continue?", *accessConfig.ClusterName, *accessConfig.Region), "", "")
msg:=fmt.Sprintf("cortex will zip %d files in %s and upload them to the cluster, though we recommend you upload large files (e.g. models) to s3 and download them in your api's __init__ function. Would you like to continue?", len(projectPaths), rootDirMsg)
123
+
prompt.YesOrExit(msg, canSkipPromptMsg, "")
124
+
didPromptFileCount=true
125
+
}
126
+
104
127
projectZipBytes, err:=zip.ToMem(&zip.Input{
105
128
FileLists: []zip.FileListInput{
106
129
{
@@ -109,11 +132,15 @@ func deploy(configPath string, force bool) {
109
132
},
110
133
},
111
134
})
112
-
113
135
iferr!=nil {
114
136
exit.Error(errors.Wrap(err, "failed to zip project folder"))
msg:=fmt.Sprintf("cortex will zip %d files in %s (%s) and upload them to the cluster, though we recommend you upload large files (e.g. models) to s3 and download them in your api's __init__ function. Would you like to continue?", len(projectPaths), rootDirMsg, s.IntToBase2Byte(len(projectZipBytes)))
Copy file name to clipboardExpand all lines: cli/cmd/lib_cluster_config.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -335,14 +335,14 @@ func confirmInstallClusterConfig(clusterConfig *clusterconfig.Config, awsCreds A
335
335
}
336
336
337
337
exitMessage:=fmt.Sprintf("cluster configuration can be modified via the cluster config file; see https://cortex.dev/v/%s/cluster-management/config for more information", consts.CortexVersionMinor)
338
-
prompt.YesOrExit("would you like to continue?", exitMessage)
338
+
prompt.YesOrExit("would you like to continue?", "", exitMessage)
exitMessage:=fmt.Sprintf("cluster configuration can be modified via the cluster config file; see https://cortex.dev/v/%s/cluster-management/config for more information", consts.CortexVersionMinor)
345
-
prompt.YesOrExit(fmt.Sprintf("your cluster (%s in %s) will be updated according to the configuration above, are you sure you want to continue?", clusterConfig.ClusterName, *clusterConfig.Region), exitMessage)
345
+
prompt.YesOrExit(fmt.Sprintf("your cluster (%s in %s) will be updated according to the configuration above, are you sure you want to continue?", clusterConfig.ClusterName, *clusterConfig.Region), "", exitMessage)
0 commit comments