tdk

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvokeCommandAndOutputPerByteToBytesInRealTime

func InvokeCommandAndOutputPerByteToBytesInRealTime(output *[]byte, name string, args ...string) error

func InvokeCommandAndOutputPerLineToBytesInRealTime

func InvokeCommandAndOutputPerLineToBytesInRealTime(output *[]byte, name string, args ...string) error

func InvokeCommandAndOutputToBytesAtOnce

func InvokeCommandAndOutputToBytesAtOnce(output *[]byte, name string, args ...string) error

func InvokeCommandAndOutputToSTDOUTAtOnce

func InvokeCommandAndOutputToSTDOUTAtOnce(name string, args ...string) error

func InvokeCommandAndOutputToSTDOUTInRealTime

func InvokeCommandAndOutputToSTDOUTInRealTime(name string, args ...string) error

func MarshalArgs

func MarshalArgs(args *TaskCaller) string

func StringToCommand added in v0.0.3

func StringToCommand(str string) []string

Types

type TaskCaller

type TaskCaller struct {
	ProjectPath string
	Args        []string
}

TaskCaller contains the arguments which pass to task. Using struct can make it more convenient to subsequent update. -------------------------------------------------- The name of this struct may not be appropriate, but I really can't think of a better name to describe it. :( If you have a better name, please submit a pull request, thanks a lot.

func UnmarshalArgs

func UnmarshalArgs(jsonStr string) *TaskCaller

Jump to

Keyboard shortcuts

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