usecases

package
v0.0.0-...-e6a9621 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWorktreeOptions

type CreateWorktreeOptions struct {
	NewBranchName  string
	BaseBranchName string
}

type UseCases

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

func CreateUseCases

func CreateUseCases(
	logger *slog.Logger,
	gc *git_commands.GitCommander,
) *UseCases

func (*UseCases) CreateWorktree

func (uc *UseCases) CreateWorktree(opts *CreateWorktreeOptions) error

func (*UseCases) DeleteWorktree

func (uc *UseCases) DeleteWorktree(wt *domain.Worktree) error

func (*UseCases) PickBranch

func (uc *UseCases) PickBranch() (string, error)

func (*UseCases) PickWorktree

func (uc *UseCases) PickWorktree(branchName *string, shouldSkipQueryOnNotFound bool) (*domain.Worktree, error)

Jump to

Keyboard shortcuts

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