Documentation
¶
Index ¶
- func BuildPlugin(pname string) bool
- func CheckCmd(cmd string) (string, error)
- func CheckGoModClean() bool
- func CheckGoModCleanExit()
- func CheckProtoc() bool
- func DoBash(argname string)
- func FindGoWork() (string, bool)
- func GoWorkExists(dir string) bool
- func InputFromUser(msg string) string
- func Install(pkg string) error
- func MakeBashCompletionText(argname string) string
- func PathRunRealtime(pwd string, args []string) cmd.Status
- func QuestionUser(msg string) bool
- func RemoveFirstElement(slice []string) (string, []string)
- func RunRealtime(args []string) cmd.Status
- func RunRealtimeError(args []string) (*cmd.Status, error)
- func Sudo(cmd []string) error
- func ValidProtobuf(filename string) (string, string, error)
- type ArgsGui
- type GuiEmptyCmd
- type GuiPrep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPlugin ¶ added in v0.0.16
func CheckGoModClean ¶
func CheckGoModClean() bool
func CheckGoModCleanExit ¶
func CheckGoModCleanExit()
func CheckProtoc ¶
func CheckProtoc() bool
func DoBash ¶ added in v0.0.18
func DoBash(argname string)
makes a bash autocomplete file for your command
func FindGoWork ¶ added in v0.0.42
findGoWork searches for a "go.work" file starting from the current directory and moving up the directory tree. It returns the path to the directory containing the file and a boolean indicating whether the file was found.
func GoWorkExists ¶ added in v0.0.42
func InputFromUser ¶ added in v0.0.27
func MakeBashCompletionText ¶ added in v0.0.18
func PathRunRealtime ¶ added in v0.0.29
echos twice a second if anything sends to STDOUT or STDERR not great, but it's really just for watching things run in real time anyway TODO: fix \r handling for things like git-clone so the terminal doesn't have to do a \n newline each time. TODO: add timeouts and status of things hanging around forever
func QuestionUser ¶ added in v0.0.17
func RemoveFirstElement ¶ added in v0.0.29
this is stuff from a long time ago that there must be a replacement for
func RunRealtime ¶ added in v0.0.29
func ValidProtobuf ¶
This verifies a .proto file conforms to the autogenpb standard
That means, for "toy.proto", there MUST exist:
message toy { } message toys { }
this parses the .proto file and handles anything with `autogenpb: ` does the fruit.proto file have "message Fruits" does it have a Uuid & valid version ?
This returns (UUID, Version, error on failure)
Types ¶
type ArgsGui ¶ added in v0.0.37
type ArgsGui struct {
}
This struct can be used with the go-arg package. These are the generic default command line arguments for the 'GUI' package
type GuiEmptyCmd ¶ added in v0.0.37
type GuiEmptyCmd struct {
}