Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup

type Backup struct {
	BackConfYamlPath string
	UI               cli.Ui
}

Backup command performs a Mongo backup

func (*Backup) Help

func (b *Backup) Help() string

Help string for the backup command

func (*Backup) Run

func (b *Backup) Run(args []string) int

Run the backup

func (*Backup) Synopsis

func (b *Backup) Synopsis() string

Synopsis string for the backup command

type Restore

type Restore struct {
	UI cli.Ui
}

Restore command performs a Mongo restore

func (*Restore) Help

func (r *Restore) Help() string

Help string for the restore command

func (*Restore) Run

func (r *Restore) Run(args []string) int

Run the Restore

func (*Restore) Synopsis

func (r *Restore) Synopsis() string

Synopsis for the restore command

type UI

type UI interface {
	// Ask asks the user for input using the given query. The response is
	// returned as the given string, or an error.
	Ask(string) (string, error)

	// Output is called for normal standard output.
	Output(string)

	// Info is called for information related to the previous output.
	// In general this may be the exact same as Output, but this gives
	// Ui implementors some flexibility with output formats.
	Info(string)

	// Error is used for any error messages that might appear on standard
	// error.
	Error(string)
}

UI is an interface for interacting with the terminal

Jump to

Keyboard shortcuts

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