cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCmd

type CreateCmd interface {
	CreateEnvironment(opts CreateOptions) error
}

func NewCreateCmd

func NewCreateCmd(client client.Client) CreateCmd

type CreateOptions

type CreateOptions struct {
	Name                 string
	WaitTimer            int
	Reviewers            *string
	ProtectedBranches    *bool
	CustomBranchPolicies *bool
}

type DeleteCmd

type DeleteCmd interface {
	Delete(opts DeleteOptions) error
}

func NewDeleteCmd

func NewDeleteCmd(client client.Client) DeleteCmd

type DeleteOptions

type DeleteOptions struct {
	Name  string
	Force bool
}

type ListCmd

type ListCmd interface {
	AsJSON(opts ListOptions) error
	AsTable(opts ListOptions) error
}

func NewListCmd

func NewListCmd(client client.Client) ListCmd

type ListOptions

type ListOptions struct {
	PerPage int
	Query   string
}

type ViewCmd

type ViewCmd interface {
	AsJSON(opts ViewOptions) error
}

func NewViewCmd

func NewViewCmd(client client.Client) ViewCmd

type ViewOptions

type ViewOptions struct {
	Name string
}

Jump to

Keyboard shortcuts

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