INNER CODE UNIT · Go
func
whalebrew/whalebrew · cmd/install.go:33
func (e multipleErrors) Error() string {
r := ""
for _, err := range e {
r = r + fmt.Sprintf("%s\n", err.Error())
}
return r
}
func init() {
installCommand.Flags().StringVarP(&customPackageName, "name", "n", "", "Name to give installed package. Defaults to image name.")
installCommand.Flags().StringVarP(&customEntrypoint, "entrypoint", "e", "", "Custom entrypoint to run the image with. Defaults to image entrypoint.")
installCommand.Flags().BoolVarP(&forceInstall, "force", "f", false, "Replace existing package if already exists. Defaults to false.")
installCommand.Flags().BoolVarP(&assumeYes, "assume-yes", "y", false, "Assume 'yes' as answer to all prompts and run non-interactively. Defaults to false.")
installCommand.Flags().BoolVar(&strict, "strict", false, "Fail installing the image if it contains any skippable error. Defaults to false.")
RootCmd.AddCommand(installCommand)
}