samael

package
v0.0.0-...-dc44631 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: GPL-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeChannel

func ConsumeChannel(params []string,
	spinner *yacspin.Spinner,
	resultChannel chan ResponseChannel) (fail error)

func CreateSpinner

func CreateSpinner(suffix string, message string) (spinner *yacspin.Spinner, fail error)

func KillSpinner

func KillSpinner(spinner *yacspin.Spinner, ok bool) (fail error)

func LexProject

func LexProject(defaultName string,
	projectPath string,
	interfaceToProject projectFunc) (
	project interface{},
	fail error)

LexProject just reads the given Succubus config file and checks it whether or not it's a valid one. It returns whether or not the config file is valid and any error encountered.

func RunCmd

func RunCmd(projectPath *string, message string, function toConsume) func(cmd *cobra.Command, params []string)

func ValidPath

func ValidPath(command string) func(*cobra.Command, []string) error

func ValidateProjectPath

func ValidateProjectPath(projectPath string) func(*cobra.Command, []string) error

Types

type ResponseChannel

type ResponseChannel struct {
	Response error
	Process  string
}

Jump to

Keyboard shortcuts

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