cmd

package
v0.0.0-...-88aa921 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2015 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServicedCli

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

ServicedCli is the client ui for serviced

Example (CmdBackup)
// Invalid path
InitBackupAPITest("serviced", "backup", PathNotFound)
// Backup returns an empty file path
InitBackupAPITest("serviced", "backup", NilPath)
// Success
InitBackupAPITest("serviced", "backup", "path/to/dir")
Output:

dir.tgz
Example (CmdRestore)
InitBackupAPITest("serviced", "restore", PathNotFound)
InitBackupAPITest("serviced", "restore", "path/to/file")
Output:

func New

func New(driver api.API) *ServicedCli

func (*ServicedCli) Run

func (c *ServicedCli) Run(args []string)

Run builds the command-line interface for serviced and runs.

Jump to

Keyboard shortcuts

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