Documentation ¶
Overview ¶
Source: https://github.com/goware/prefixer
Singleton module
Index ¶
- Constants
- Variables
- func CheckIfError(err error)
- func CreateManPage(desc string, version string, date string, rootCmd *cobra.Command, ...) error
- func DebugPrint(data any)
- func FindFileInParentDirs(path string, files []string) (string, error)
- func GenManPages(dir string) error
- func GetAbsolutePath(configDir string, path string, name string) (string, error)
- func Intersection(a []string, b []string) []string
- func Ptr[T any](t T) *T
- func StringInSlice(a string, list []string) bool
- func StringsToErrors(str []string) []error
- func Strip(str string) string
- type AlreadySakeDirectory
- type ConfigEnvFailed
- type ConfigErr
- type ConfigNotFound
- type FileError
- type ListFlags
- type Loader
- type NoEditorEnv
- type NoRemoteServerToAttach
- type PasswordEvalFailed
- type Prefixer
- type RunFlags
- type ServerFlags
- type ServerNotFound
- type SetRunFlags
- type SpecNotFound
- type TagFlags
- type TagNotFound
- type TargetNotFound
- type TaskFlags
- type TaskMultipleDef
- type TaskNotFound
- type ThemeNotFound
Constants ¶
View Source
const ANSI = "" /* 129-byte string literal not displayed */
Variables ¶
View Source
var CONFIG_MAN []byte
View Source
var CONFIG_MD []byte
View Source
var RE = regexp.MustCompile(ANSI)
Functions ¶
func CheckIfError ¶
func CheckIfError(err error)
func CreateManPage ¶
func DebugPrint ¶
func DebugPrint(data any)
func GenManPages ¶
func GetAbsolutePath ¶
Get the absolute path Need to support following path types:
lala/land ./lala/land ../lala/land /lala/land $HOME/lala/land ~/lala/land ~root/lala/land
func Intersection ¶
func Ptr ¶
func Ptr[T any](t T) *T
Used when creating pointers to literal. Useful when you want set/unset attributes.
func StringInSlice ¶
func StringsToErrors ¶
Types ¶
type AlreadySakeDirectory ¶
type AlreadySakeDirectory struct {
Dir string
}
func (*AlreadySakeDirectory) Error ¶
func (c *AlreadySakeDirectory) Error() string
type ConfigEnvFailed ¶
func (*ConfigEnvFailed) Error ¶
func (c *ConfigEnvFailed) Error() string
type ConfigNotFound ¶
type ConfigNotFound struct {
Names []string
}
func (*ConfigNotFound) Error ¶
func (f *ConfigNotFound) Error() string
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func GetSpinner ¶
func GetSpinner() *Loader
func (*Loader) Status ¶
func (s *Loader) Status() yacspin.SpinnerStatus
type NoEditorEnv ¶
type NoEditorEnv struct{}
func (*NoEditorEnv) Error ¶
func (c *NoEditorEnv) Error() string
type NoRemoteServerToAttach ¶
type NoRemoteServerToAttach struct{}
func (*NoRemoteServerToAttach) Error ¶
func (c *NoRemoteServerToAttach) Error() string
type PasswordEvalFailed ¶
type PasswordEvalFailed struct {
Err string
}
func (*PasswordEvalFailed) Error ¶
func (c *PasswordEvalFailed) Error() string
type Prefixer ¶
type Prefixer struct {
// contains filtered or unexported fields
}
Prefixer implements io.Reader and io.WriterTo. It reads data from the underlying reader and prepends every line with a given string.
func NewPrefixer ¶
New creates a new instance of Prefixer.
type RunFlags ¶
type RunFlags struct { // Flags Edit bool DryRun bool Describe bool Debug bool // Target All bool Servers []string Tags []string Cwd bool // Config KnownHostsFile string // Task Theme string TTY bool Attach bool Local bool // Server IdentityFile string Password string // Spec Parallel bool AnyErrorsFatal bool IgnoreErrors bool IgnoreUnreachable bool OmitEmpty bool Output string }
type ServerFlags ¶
type ServerNotFound ¶
type ServerNotFound struct {
Name []string
}
func (*ServerNotFound) Error ¶
func (c *ServerNotFound) Error() string
type SetRunFlags ¶
type SpecNotFound ¶
type SpecNotFound struct {
Name string
}
func (*SpecNotFound) Error ¶
func (c *SpecNotFound) Error() string
type TagNotFound ¶
type TagNotFound struct {
Tags []string
}
func (*TagNotFound) Error ¶
func (c *TagNotFound) Error() string
type TargetNotFound ¶
type TargetNotFound struct {
Name string
}
func (*TargetNotFound) Error ¶
func (c *TargetNotFound) Error() string
type TaskMultipleDef ¶
type TaskMultipleDef struct {
Name string
}
func (*TaskMultipleDef) Error ¶
func (c *TaskMultipleDef) Error() string
type TaskNotFound ¶
type TaskNotFound struct {
IDs []string
}
func (*TaskNotFound) Error ¶
func (c *TaskNotFound) Error() string
type ThemeNotFound ¶
type ThemeNotFound struct {
Name string
}
func (*ThemeNotFound) Error ¶
func (c *ThemeNotFound) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.