remotescmd

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package remotescmd implements the 'inertia [remote]' subcommands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachEnvCmd

func AttachEnvCmd(host *HostCmd)

AttachEnvCmd attaches the 'env' subcommands to the given host

func AttachRemoteHostCmd

func AttachRemoteHostCmd(
	inertia *core.Cmd,
	opts CmdOptions,
	hidden ...bool,
)

AttachRemoteHostCmd attaches a subcommand for a configured remote host to the given parent

func AttachRemotesCmds

func AttachRemotesCmds(root *core.Cmd, validateConfig bool)

AttachRemotesCmds reads configuration to attach a child command for each configured remote in the configuration

func AttachTotpCmd

func AttachTotpCmd(root *UserCmd)

AttachTotpCmd attaches the 'totp' subcommands to given parent

func AttachUserCmd

func AttachUserCmd(host *HostCmd)

AttachUserCmd attaches the 'user' subcommands to the given parent

Types

type CmdOptions

type CmdOptions struct {
	RemoteCfg  *cfg.Remote
	ProjectCfg *cfg.Project
}

CmdOptions denotes options for individual host subcommands

type EnvCmd

type EnvCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

EnvCmd is the parent class for the 'env' subcommands

func (*EnvCmd) Context

func (root *EnvCmd) Context() context.Context

Context returns the root host command's context

type HostCmd

type HostCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

HostCmd is the parent class for a subcommand for a configured remote host

type UserCmd

type UserCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

UserCmd is the parent class for the 'user' subcommands

type UserTotpCmd

type UserTotpCmd struct {
	*cobra.Command
	// contains filtered or unexported fields
}

UserTotpCmd is the parent class for the 'user totp' subcommands

Jump to

Keyboard shortcuts

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