initialize

package
v0.0.0-...-117ffbb Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const LineBreak = "\n"

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(options ...Option) *Command

TODO: Refactor to implement options pattern.

func (*Command) Description

func (c *Command) Description() string

func (*Command) Name

func (c *Command) Name() string

func (*Command) Run

func (c *Command) Run(_ context.Context, args []string) error

type Option

type Option = func(c *Command)

func WithCwd

func WithCwd(cwd string) Option

func WithExecutable

func WithExecutable(executable string) Option

func WithFilesystem

func WithFilesystem(fs billy.Filesystem) Option

func WithUser

func WithUser(user *user.User) Option

Jump to

Keyboard shortcuts

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