INNER CODE UNIT · Go
init
whalebrew/whalebrew · cmd/install.go:41
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)
}
var installCommand = &cobra.Command{
Use: "install IMAGENAME",
Short: "Install a package",
RunE: func(cmd *cobra.Command, args []string) error {
ctx := context.Background()
if len(args) < 1 {
return cmd.Help()
}