cmd

package
v0.7.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 45 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "ctnr",
	Short: "a lightweight container engine",
	Long: `ctnr is a lightweight OCI container engine built around runc.
It supports container and image management and aims to run in every linux environment.`,
	PersistentPreRun: preRun,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ParseMount

func ParseMount(expr string) (r model.VolumeMount, err error)

Parses a docker-like mount expression or falls back to the docker-like volume expression. See https://docs.docker.com/storage/bind-mounts/#choosing-the--v-or-mount-flag

Types

type UsageError

type UsageError string

func (UsageError) Error

func (err UsageError) Error() string

Jump to

Keyboard shortcuts

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