custom

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMsg = map[string]string{
	"noEnvErr":        "Looks like you don't have a .env\nlet's fix that.",
	"emptyEnvErr":     "Your .env is empty\nlet's fix that.",
	"envCreationErr":  "Could not create `.env`.",
	"readInputErr":    "Could not read your input.",
	"emptyInputErr":   "No input was entered.",
	"repoCreationErr": "Could not create repository.",
	"getGhUserErr":    "Could not get the GitHub user.",
	"fileCreationErr": "Could not create file",
	"getIgnoreErr":    "Could not get .gitignore template.",
	"issuesErr":       "Could not get your issues.",
	"dirCreationErr":  "Could not create `.rgn`.",
	"homeErr":         "HOME DIRECTORY SHOULD EXIST.",
	"repoExistsErr":   "Repository already exists.",
}

Functions

func Error added in v0.8.1

func Error(msg string, err error) error

func HeaderMsg

func HeaderMsg(msg string)

func SuccesfullLicenseCreation added in v0.5.0

func SuccesfullLicenseCreation(rName string)

func SuccesfullRepoCreation added in v0.5.0

func SuccesfullRepoCreation(rName, sshURL, httpURL string)

func Success added in v0.13.0

func Success(msg string)

Types

type Tabby added in v0.9.0

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

Tabby is returned when New() is called.

func NewCustom added in v0.9.0

func NewCustom(writer *tabwriter.Writer) *Tabby

NewCustom returns a new *Tabby with custom *tabwriter.Writer set

func NewTabby added in v0.9.0

func NewTabby() *Tabby

New returns a new *tabwriter.Writer with default config

func (*Tabby) AddHeader added in v0.9.0

func (t *Tabby) AddHeader(args ...interface{})

AddHeader will write a new table line followed by a seperator

func (*Tabby) AddLine added in v0.9.0

func (t *Tabby) AddLine(args ...interface{})

AddLine will write a new table line

func (*Tabby) Print added in v0.9.0

func (t *Tabby) Print()

Print will write the table to the terminal

Jump to

Keyboard shortcuts

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