cli

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2017 License: MPL-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Tag is set at build time.
	Tag string
	// GitCommit is set at build time.
	GitCommit string
	// Built is set at build time.
	Built string
)

Functions

func Implement

func Implement(opts *ImplementOptions) error

Implement executes the plan.

func PrintLongVersion

func PrintLongVersion()

PrintLongVersion prints verbose version information.

func PrintShortVersion

func PrintShortVersion()

PrintShortVersion prints the tag and git commit.

func Start

func Start(opts *ServeOptions)

Start starts the server.

Types

type ImplementOptions

type ImplementOptions struct {
	Address string
	Plan    string
}

ImplementOptions is used to configure the client.

type Plan

type Plan struct {
	Templates map[string]*Template `yaml:"templates"`
	Script    *string              `yaml:"script,omitempty"`
}

Plan represents a plan.

type ServeOptions

type ServeOptions struct {
	Storage     string
	BackendPort string
	UIPort      string
}

ServeOptions is used to configure the server.

type Server

type Server struct {
	Storage datastore.Datastore
}

Server represents the Devise server.

type Template

type Template struct {
	Destination string      `yaml:"destination"`
	Permissions os.FileMode `yaml:"permissions"`
}

Template represents a template.

type Version

type Version struct {
	Tag       string
	GitCommit string
	Built     string
	GoVersion string
	Os        string
	Arch      string
}

Version contains verbose version information.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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