bootstrap

package
v0.4.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package bootstrap provides workflow steps for initializing a new project.

Index

Constants

View Source
const (
	// FilePermReadWrite is 0o644.
	FilePermReadWrite = 0o644
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloneRepoStep

type CloneRepoStep struct {
	ExecClient *exec.ExecutorClient
	Presenter  workflow.PresenterInterface
	CloneURL   string
	LocalPath  string
}

CloneRepoStep clones a remote repository to a local path.

func (*CloneRepoStep) Description

func (s *CloneRepoStep) Description() string

Description returns a description of the step.

func (*CloneRepoStep) Execute

func (s *CloneRepoStep) Execute(ctx context.Context) error

Execute runs the step.

func (*CloneRepoStep) PreCheck

func (s *CloneRepoStep) PreCheck(_ context.Context) error

PreCheck performs pre-execution checks.

type CreateRemoteRepoStep

type CreateRemoteRepoStep struct {
	GHClient        *gh.Client
	Presenter       workflow.PresenterInterface
	Owner           string // ADDED Owner field
	RepoName        string
	RepoDescription string
	IsPrivate       bool
	// Outputs of this step to be used by subsequent steps
	CreatedRepoURL string
	CloneURL       string
}

CreateRemoteRepoStep creates a new remote repository on GitHub.

func (*CreateRemoteRepoStep) Description

func (s *CreateRemoteRepoStep) Description() string

Description returns a description of the step.

func (*CreateRemoteRepoStep) Execute

func (s *CreateRemoteRepoStep) Execute(ctx context.Context) error

Execute runs the step.

func (*CreateRemoteRepoStep) PreCheck

func (s *CreateRemoteRepoStep) PreCheck(_ context.Context) error

PreCheck performs pre-execution checks.

type InitialCommitAndPushStep

type InitialCommitAndPushStep struct {
	ExecClient *exec.ExecutorClient
	Presenter  workflow.PresenterInterface
	LocalPath  string
}

InitialCommitAndPushStep creates and pushes the initial commit.

func (*InitialCommitAndPushStep) Description

func (s *InitialCommitAndPushStep) Description() string

Description returns a description of the step.

func (*InitialCommitAndPushStep) Execute

Execute runs the step.

func (*InitialCommitAndPushStep) PreCheck

PreCheck performs pre-execution checks.

type ScaffoldProjectStep

type ScaffoldProjectStep struct {
	Presenter    workflow.PresenterInterface
	LocalPath    string
	GoModulePath string
	AppName      string
}

ScaffoldProjectStep scaffolds the project structure and template files.

func (*ScaffoldProjectStep) Description

func (s *ScaffoldProjectStep) Description() string

Description returns a description of the step.

func (*ScaffoldProjectStep) Execute

func (s *ScaffoldProjectStep) Execute(_ context.Context) error

Execute runs the step.

func (*ScaffoldProjectStep) PreCheck

func (s *ScaffoldProjectStep) PreCheck(_ context.Context) error

PreCheck performs pre-execution checks.

Jump to

Keyboard shortcuts

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