fork

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostingOptions

type HostingOptions = hosting.ForkRepositoryOptions

type Options

type Options struct {
	RequestTimeout time.Duration
	TryCloneNotify service.TryCloneNotify
	HostingOptions
	Target string
}

Options represents the options for the fork use case

type UseCase

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

UseCase represents the fork use case

func NewUseCase

func NewUseCase(
	hostingService hosting.HostingService,
	workspaceService workspace.WorkspaceService,
	defaultNameService repository.DefaultNameService,
	referenceParser repository.ReferenceParser,
	gitService git.GitService,
) *UseCase

NewUseCase creates a new fork use case

func (*UseCase) Execute

func (uc *UseCase) Execute(ctx context.Context, source string, opts Options) error

Execute forks a repository and clones it to the local machine

Jump to

Keyboard shortcuts

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