workspace

package
v0.0.0-...-097cc4d Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package workspace let's you manage workspaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Composer

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

func NewComposer

func NewComposer(bm bind.PathBinder) Composer

func (Composer) Compose

func (m Composer) Compose(codebasePath string, workspacePath string) ([]string, error)

Compose a workspace from a codebase Returns a list of path binds in the order they were bound

func (Composer) Dismantle

func (m Composer) Dismantle(dismantlePath string) ([]string, error)

Dismantle a workspace Returns a list of path unbinds in the order they were unbound

func (Composer) List

func (m Composer) List(listPath string) ([]string, error)

List all binds attached under a directory

func (Composer) Unbind

func (m Composer) Unbind(unbindPath string) error

Unbind a project

type FileCopier

type FileCopier struct {
}

func NewFileCopier

func NewFileCopier() *FileCopier

func (FileCopier) Copy

func (f FileCopier) Copy(codebaseDir string, gitProjects []string, workspaceDir string) error

gitProjects is relative to codebaseDir

func (FileCopier) CopyDirOnly

func (f FileCopier) CopyDirOnly(sourceInfo os.FileInfo, destPath string) error

CopyDirOnly copies a directory non-recursively sourcePath must be contained in codebaseDir

func (FileCopier) CopyDirRecursive