mode

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mode provides interfaces and types for detecting and handling different project modes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWorktreeOpts

type CreateWorktreeOpts struct {
	IDEName   string
	IssueInfo *issue.Info
}

CreateWorktreeOpts contains unified optional parameters for worktree creation. This combines options from both workspace and repository modes.

type Interface

type Interface interface {
	// Common methods with harmonized signatures
	Validate() error
	CreateWorktree(branch string, opts ...CreateWorktreeOpts) (string, error)
	DeleteWorktree(branch string, force bool) error
	ListWorktrees() ([]status.WorktreeInfo, error)
	SetLogger(logger logger.Logger)
}

Interface provides the common interface for both workspace and repository modes.

type Mode

type Mode int

Mode represents the type of project detected.

const (
	ModeNone Mode = iota
	ModeSingleRepo
	ModeWorkspace
)

Mode constants.

Directories

Path Synopsis
Package repository provides repository management functionality and error definitions.
Package repository provides repository management functionality and error definitions.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package workspace provides workspace management functionality for CM.
Package workspace provides workspace management functionality for CM.
mocks
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