inertia: github.com/ubclaunchpad/inertia/cmd/remotes Index | Files

package remotescmd

import "github.com/ubclaunchpad/inertia/cmd/remotes"

Package remotescmd implements the 'inertia [remote]' subcommands

Index

Package Files

doc.go env.go remotes.go user.go user_totp.go

func AttachEnvCmd Uses

func AttachEnvCmd(host *HostCmd)

AttachEnvCmd attaches the 'env' subcommands to the given host

func AttachRemoteHostCmd Uses

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

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

func AttachRemotesCmds Uses

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

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

func AttachTotpCmd Uses

func AttachTotpCmd(root *UserCmd)

AttachTotpCmd attaches the 'totp' subcommands to given parent

func AttachUserCmd Uses

func AttachUserCmd(host *HostCmd)

AttachUserCmd attaches the 'user' subcommands to the given parent

type CmdOptions Uses

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

CmdOptions denotes options for individual host subcommands

type EnvCmd Uses

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

EnvCmd is the parent class for the 'env' subcommands

func (*EnvCmd) Context Uses

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

Context returns the root host command's context

type HostCmd Uses

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 Uses

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

UserCmd is the parent class for the 'user' subcommands

type UserTotpCmd Uses

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

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

Package remotescmd imports 18 packages (graph) and is imported by 2 packages. Updated 2021-01-28. Refresh now. Tools for package owners.