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
Add —config to allow the user to specify the config (#2291)
* Add —config to allow the user to specify the config
* —config allows the user to tell cog which file
to look at
* This is useful when they have multiple configs
for different environments
* Fix lint
* Inject configFilename into migrator
* Change —config to be -f to conform to docker
---------
Signed-off-by: Will Sackfield <[email protected]>
Copy file name to clipboardExpand all lines: pkg/cli/predict.go
+2-1
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ the prediction on that.`,
58
58
addSetupTimeoutFlag(cmd)
59
59
addFastFlag(cmd)
60
60
addLocalImage(cmd)
61
+
addConfigFlag(cmd)
61
62
62
63
cmd.Flags().StringArrayVarP(&inputFlags, "input", "i", []string{}, "Inputs, in the form name=value. if value is prefixed with @, then it is read from a file on disk. E.g. -i [email protected]")
Copy file name to clipboardExpand all lines: pkg/cli/train.go
+2-1
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ Otherwise, it will build the model in the current directory and train it.`,
44
44
addGpusFlag(cmd)
45
45
addUseCogBaseImageFlag(cmd)
46
46
addFastFlag(cmd)
47
+
addConfigFlag(cmd)
47
48
48
49
cmd.Flags().StringArrayVarP(&trainInputFlags, "input", "i", []string{}, "Inputs, in the form name=value. if value is prefixed with @, then it is read from a file on disk. E.g. -i [email protected]")
49
50
cmd.Flags().StringArrayVarP(&trainEnvFlags, "env", "e", []string{}, "Environment variables, in the form name=value")
0 commit comments