cmd

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2018 License: BSD-3-Clause Imports: 50 Imported by: 8

Documentation

Overview

Package cmd contains all of the Torus cli commands

Index

Constants

View Source
const (

	// GlobalRoot is the global root of the Torus config
	GlobalRoot = "/etc/torus"

	// EnvironmentFile is the environment file that stores machine information
	EnvironmentFile = "token.environment"
)

Variables

View Source
var Cmds []cli.Command

Cmds is the list of all cli commands

Functions

func NewAPIClient added in v0.13.0

func NewAPIClient(ctx *context.Context, client *api.Client) (context.Context, *api.Client, error)

NewAPIClient loads config and creates a new api client

func VersionLookup

func VersionLookup(ctx *cli.Context) error

VersionLookup ensures the environment is ready and then executes version cmd

Types

type ByTeamPrecedence added in v0.28.0

type ByTeamPrecedence []envelope.Team

ByTeamPrecedence will implement the sort Interface

func (ByTeamPrecedence) Len added in v0.28.0

func (tp ByTeamPrecedence) Len() int

func (ByTeamPrecedence) Less added in v0.28.0

func (tp ByTeamPrecedence) Less(i, j int) bool

func (ByTeamPrecedence) Swap added in v0.28.0

func (tp ByTeamPrecedence) Swap(i, j int)

Jump to

Keyboard shortcuts

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