importpkg

package
v0.6.44 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat added in v0.6.44

func Concat[T any](left []T, right []T) []T

func DictMerge added in v0.6.44

func DictMerge[K comparable, V any](left map[K]V, right map[K]V) map[K]V

func Difference added in v0.6.44

func Difference[T comparable](from []T, remove []T) []T

func Filter added in v0.6.44

func Filter[T any](fn func(some T) bool, list []T) []T

func Flatmap added in v0.6.44

func Flatmap[T any, R any](fn func(some T) []R, list []T) []R

func Fmap added in v0.6.44

func Fmap[T any, R any](fn func(some T) R, list []T) []R

func Foldl added in v0.6.44

func Foldl[T any, R any](fn func(acc R, next T) R, base R, list []T) R

func Foldr added in v0.6.44

func Foldr[T any, R any](fn func(next T, carry R) R, base R, list []T) R

func NewCmdImport

func NewCmdImport(t *terminal.Terminal, loginImportStore ImportStore, noLoginImportStore ImportStore) *cobra.Command

func ToDict added in v0.6.44

func ToDict[T comparable](xs []T) map[T]bool

func Uniq added in v0.6.44

func Uniq[T comparable](xs []T) []T

Types

type ImportStore

type ImportStore interface {
	GetWorkspaces(organizationID string, options *store.GetWorkspacesOptions) ([]entity.Workspace, error)
	GetActiveOrganizationOrDefault() (*entity.Organization, error)
	GetCurrentUser() (*entity.User, error)
	StartWorkspace(workspaceID string) (*entity.Workspace, error)
	GetWorkspace(workspaceID string) (*entity.Workspace, error)
	GetOrganizations(options *store.GetOrganizationsOptions) ([]entity.Organization, error)
	CreateWorkspace(organizationID string, options *store.CreateWorkspacesOptions) (*entity.Workspace, error)
	GetWorkspaceMetaData(workspaceID string) (*entity.WorkspaceMetaData, error)
	GetDotGitConfigFile(path string) (string, error)
	GetDependenciesForImport(path string) (*store.Dependencies, error)
}

type NewWorkspace

type NewWorkspace struct {
	Name    string `json:"name"`
	GitRepo string `json:"gitRepo"`
}

func MakeNewWorkspaceFromURL

func MakeNewWorkspaceFromURL(url string) NewWorkspace

type OrderDefsFailures added in v0.6.44

type OrderDefsFailures struct {
	Order    []string
	Defs     map[string]ShellFragment
	Failures []string
}

type ShellFragment added in v0.6.44

type ShellFragment struct {
	Name         *string  `json:"name"`
	Tag          *string  `json:"tag"`
	Comment      *string  `json:"comment"`
	Script       []string `json:"script"`
	Dependencies []string `json:"dependencies"`
}

Jump to

Keyboard shortcuts

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