helpers

package
v0.0.0-...-74f7d07 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinCwd

func JoinCwd(segments ...string) string

func Log

func Log() string

func Normalise

func Normalise(p string) string

func Path

func Path(parent, relative string) string

func Reason

func Reason(name string) string

func Repo

func Repo(relative string) string

func Root

func Root() string

Types

type CommandTester

type CommandTester struct {
	Args []string
	Root *cobra.Command
}

CommandTester eases creation of unit tests for cobra command

func (*CommandTester) Execute

func (ch *CommandTester) Execute() (string, error)

Jump to

Keyboard shortcuts

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