cmd

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:           "whalebrew",
	Short:         "Install Docker images as native commands",
	SilenceUsage:  true,
	SilenceErrors: true,
}

RootCmd is the root CLI command

Functions

func DockerCLIRun

func DockerCLIRun(args []string) error

DockerCLIRun runs the package using docker CLI forwarding the command line arguments

func IsShellbang

func IsShellbang(args []string) bool

IsShellbang returns whether the arguments should be interpreted as a shellbang run

func Run

func Run(loader packages.Loader, runner run.Runner, args []string) error

Run runs a package after extracting arguments

Types

type ErrorWithImage

type ErrorWithImage struct {
	Image string
	Err   error
}

func (ErrorWithImage) Error

func (e ErrorWithImage) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL