ls

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ls lists workspaces in the current org

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdLs

func NewCmdLs(t *terminal.Terminal, loginLsStore LsStore, noLoginLsStore LsStore) *cobra.Command

func RunLs added in v0.4.0

func RunLs(t *terminal.Terminal, lsStore LsStore, args []string, orgflag string) error

Types

type Ls added in v0.4.0

type Ls struct {
	// contains filtered or unexported fields
}

func NewLs added in v0.4.0

func NewLs(lsStore LsStore, terminal *terminal.Terminal) *Ls

func (Ls) RunOrgs added in v0.4.0

func (ls Ls) RunOrgs() error

func (Ls) RunWorkspaces added in v0.4.0

func (ls Ls) RunWorkspaces(org *entity.Organization) error

type LsStore added in v0.4.0

type LsStore interface {
	GetWorkspaces(organizationID string, options *store.GetWorkspacesOptions) ([]entity.Workspace, error)
	GetActiveOrganizationOrDefault() (*entity.Organization, error)
	GetCurrentUser() (*entity.User, error)
	GetWorkspace(workspaceID string) (*entity.Workspace, error)
	GetOrganizations(options *store.GetOrganizationsOptions) ([]entity.Organization, error)
}

Jump to

Keyboard shortcuts

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