cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cli contains generic implementation of CLI tools build around types.Resource interface.

Index

Constants

View Source
const (
	// ExitError is returned by Run(), if any error occurs.
	ExitError = 1
	// ExitOK is successful return code from Run().
	ExitOK = 0
)

Variables

This section is empty.

Functions

func ReadYamlFile added in v0.3.0

func ReadYamlFile(file string) ([]byte, error)

ReadYamlFile reads YAML file from disk and handles empty files, so they can be merged.

func Run

func Run(rc types.ResourceConfig) int

Run is a generic function, which runs Flexkube CLI tools. If any error occurs, non-zero exit code is returned.

Types

This section is empty.

Directories

Path Synopsis
Package containerrunner contains implementation of CLI tool for creating any managing any containers.
Package containerrunner contains implementation of CLI tool for creating any managing any containers.
Package flexkube contains logic of 'flexkube' CLI.
Package flexkube contains logic of 'flexkube' CLI.

Jump to

Keyboard shortcuts

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