command

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProjectNameRequired    = errors.New("project name required")
	ErrRepositoryNameRequired = errors.New("repository name required")
	ErrInvalidLicense         = errors.New("invalid licence option")
	ErrAlreadyFolderExists    = errors.New("folder already exists")
)

sentinel errors.

View Source
var (
	ErrCWDIsEmpty        = errors.New("current working directory is empty")
	ErrAlreadyInAGitRepo = errors.New("you are already in a git repo")
)

sentinel errors.

Functions

func New

func New(options ...Option) (*cmd, error)

New instantiates new gircmd instance.

Types

type Option

type Option func(*cmd)

Option represents option function type for functional options.

func WithWriter

func WithWriter(wr io.Writer) Option

WithWriter sets writer.

Jump to

Keyboard shortcuts

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