dkl

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 17 Imported by: 0

README

dkl

Pure Go implementation of dtt.

Description

Pure Go implementation of dtt.
dkl is the text-mode interface for docker and kubectl command. dkl shows containers(or pods), and exec(login) selected it.

Demo & VS.

Requirement

Need docker, and kubectl commands.

Usage

$ dkl -h
Usage of dkl:
  -d    list docker containers and exec selected container.
  -docker
        list docker containers and exec selected container.
  -k    list pods and exec selected pod.
  -kubernetes
        list pods and exec selected pod.
  -v    Print version information and quit.
  -version
        Print version information and quit.

Install

You can download binary from release page and place it in $PATH directory.

MacOS

If you want to install on MacOS, you can use Homebrew.

brew install budougumi0617/tap/dkl

Contribution

  1. Fork (https://github.com/budougumi0617/dkl/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create new Pull Request

License

MIT

Author

budougumi0617

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string, inStream io.Reader, outStream, errStream io.Writer) error

Run is entry point.

Types

type ExecResult added in v0.0.1

type ExecResult struct {
	ExitCode int
	// contains filtered or unexported fields
}

ExecResult represents a result returned from Exec()

func (*ExecResult) Combined added in v0.0.1

func (res *ExecResult) Combined() string

Combined returns combined stdout and stderr output of a command run by Exec()

func (*ExecResult) Stderr added in v0.0.1

func (res *ExecResult) Stderr() string

Stderr returns stderr output of a command run by Exec()

func (*ExecResult) Stdout added in v0.0.1

func (res *ExecResult) Stdout() string

Stdout returns stdout output of a command run by Exec()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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