workspace

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package workspace provides workspace management functionality for CM.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Worktree errors.
	ErrWorktreeExists      = errors.New("worktree already exists")
	ErrWorktreeNotInStatus = errors.New("worktree not found in status")
	ErrRepositoryNotClean  = errors.New("repository is not clean")
	ErrDirectoryExists     = errors.New("directory already exists")

	// User interaction errors.
	ErrDeletionCancelled = errors.New("deletion cancelled by user")
)

Error definitions for workspace package.

Functions

This section is empty.

Types

type Config

type Config = interfaces.Config

Config represents the configuration of a workspace.

type CreateWorktreeOpts

type CreateWorktreeOpts = interfaces.CreateWorktreeOpts

CreateWorktreeOpts contains optional parameters for worktree creation in workspace mode.

type Folder

type Folder = interfaces.Folder

Folder represents a folder in a workspace.

type NewWorkspaceParams

type NewWorkspaceParams = interfaces.NewWorkspaceParams

NewWorkspaceParams contains parameters for creating a new Workspace instance.

type Workspace

type Workspace = interfaces.Workspace

Workspace interface provides workspace management capabilities. This interface is now defined in pkg/mode/workspace/interfaces to avoid circular imports.

func NewWorkspace

func NewWorkspace(params NewWorkspaceParams) Workspace

NewWorkspace creates a new Workspace instance.

Directories

Path Synopsis
Package interfaces defines the workspace interface for dependency injection.
Package interfaces defines the workspace interface for dependency injection.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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