dcmd

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 9 Imported by: 0

README

Dcmd

Docker-composer management tools

Release MIT licensed Build Status Go Report Card GoCover.io GoDoc

Documentation

Index

Constants

View Source
const (
	Name        = "Dcmd"
	Usage       = "fast do docker-compose something"
	Version     = "0.0.1"
	ConfigName  = "/config.json"
	CheckSymbol = "\u2714 "
	CrossSymbol = "\u2716 "
	EditSymbol  = "\u2710 "
)

Variables

View Source
var (
	// StorePath is the default dcmd config
	StorePath = filepath.Join(os.Getenv("HOME"), ".dcmd")
)

Functions

func IsEmpty

func IsEmpty(path string) (bool, error)

check config is empty.

func LoadComposes

func LoadComposes() map[string]string

func SetConfig

func SetConfig(p string) (int, error)

set Docker-composes path into Config

func Start

func Start(s string)

func Stop

func Stop()

Types

type Config

type Config struct {
	PATH string `json:"dockerPath"`
}

func GetComposePath

func GetComposePath() Config

Get Docker-composes path

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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