Documentation ¶
Index ¶
- func Concat[T any](left []T, right []T) []T
- func DictMerge[K comparable, V any](left map[K]V, right map[K]V) map[K]V
- func Difference[T comparable](from []T, remove []T) []T
- func Filter[T any](fn func(some T) bool, list []T) []T
- func Flatmap[T any, R any](fn func(some T) []R, list []T) []R
- func Fmap[T any, R any](fn func(some T) R, list []T) []R
- func Foldl[T any, R any](fn func(acc R, next T) R, base R, list []T) R
- func Foldr[T any, R any](fn func(next T, carry R) R, base R, list []T) R
- func NewCmdImport(t *terminal.Terminal, loginImportStore ImportStore, ...) *cobra.Command
- func ToDict[T comparable](xs []T) map[T]bool
- func Uniq[T comparable](xs []T) []T
- type ImportStore
- type NewWorkspace
- type OrderDefsFailures
- type ShellFragment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 ¶
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 }
Click to show internal directories.
Click to hide internal directories.