core

package
v0.0.0-...-abe558f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2015 License: MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const BinaryName = "runcom"
View Source
const Name = "Runcom"

Variables

View Source
var BackupCommand = &cobra.Command{
	Use:   "backup",
	Short: "Backup configuration to storage",
	Long:  `Filler`,

	Run: func(cmd *cobra.Command, args []string) {

	},
}
View Source
var ConnectCommand = &cobra.Command{
	Use:   "connect",
	Short: "Connect to GitHub",
	Long:  `Filler`,

	Run: func(cmd *cobra.Command, args []string) {

	},
}
View Source
var GetCommand = &cobra.Command{
	Use:   "get",
	Short: "Fetch repository",
	Long:  `Filler`,

	Run: func(cmd *cobra.Command, args []string) {

	},
}
View Source
var PackCommand = &cobra.Command{
	Use:   "pack",
	Short: "Pack storage to compressed file",
	Long:  `Filler`,

	Run: func(cmd *cobra.Command, args []string) {

	},
}
View Source
var PruneCommand = &cobra.Command{
	Use:   "prune",
	Short: "Remove stuff not in storage",
	Long:  `Filler`,

	Run: func(cmd *cobra.Command, args []string) {

	},
}
View Source
var PushCommand = &cobra.Command{
	Use:   "push",
	Short: "Upload repository",
	Long:  `Filler`,

	Run: func(cmd *cobra.Command, args []string) {

	},
}
View Source
var RestoreCommand = &cobra.Command{
	Use:   "restore",
	Short: "Restore configuration from storage",
	Long:  `Filler`,

	Run: func(cmd *cobra.Command, args []string) {

	},
}
View Source
var UnpackCommand = &cobra.Command{
	Use:   "unpack",
	Short: "Open compressed storage",
	Long:  `Filler`,

	Run: func(cmd *cobra.Command, args []string) {

	},
}

Add to plugins?

Functions

func CreateDir

func CreateDir(directory string) bool

func Directory

func Directory() string

func Exists

func Exists(filename string) bool

func IsInstalled

func IsInstalled(command string) bool

func IsSymbolic

func IsSymbolic(filename string) bool

func PluginDirectory

func PluginDirectory(plugin string) string

func Valid

func Valid(filename string) bool

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(command string, args ...string) Command

func (Command) Install

func (c Command) Install(input ...string)

Install is a command executer for install commands.

func (Command) List

func (c Command) List() ([]string, error)

List is a command executer for collecting command output.

type PluginNotFoundError

type PluginNotFoundError string

func (PluginNotFoundError) Error

func (e PluginNotFoundError) Error() string

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(name string) Printer

func (Printer) Ask

func (p Printer) Ask(message string, value bool) bool

func (Printer) Error

func (p Printer) Error(a ...interface{})

func (Printer) Print

func (p Printer) Print(a ...interface{})

func (Printer) Printf

func (p Printer) Printf(format string, a ...interface{})

func (Printer) Write

func (p Printer) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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