cli

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildTime should be set to a datetime string.
	BuildTime = "n/a"
	// Commit should be set to a Git commit SHA.
	Commit = "n/a"
	// Version should be set to the tid version.
	Version = "n/a"
)

Functions

func CreateApplication

func CreateApplication(kernel *TidKernel) *console.Application

CreateApplication builds the console application instance. Providing it with some basic information like the name and version.

Types

type TidKernel

type TidKernel struct {
	// Backend provides an abstracted, but reasonably low-level interface to the underlying storage.
	Backend state.Backend
	// Config has all the configurations specified in the config file
	Config types.Config
	// Factory abstracts the creation of services.
	Factory util.Factory
}

TidKernel is the core "container", and provider of services and information to the `tid` cli application.

func NewTidKernel

func NewTidKernel(backend state.Backend, factory util.Factory, config types.Config) *TidKernel

NewTidKernel creates a new TidKernel, with services attached.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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