Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteSliceHasAnyPrefix ¶ added in v0.3.0
ByteSliceHasAnyPrefix tests whether the byte slice s begins with any of the prefixes.
func CleanUpProcessGroup ¶
CleanUpProcessGroup will send a SIGTERM signal to the process group belonging to the `cmd` process
func ExitStatus ¶ added in v0.4.0
ExitStatus will return the exit-code from an error
func GetRepoPath ¶ added in v0.5.0
func GetRepoPath(repo *pb.Repository) (string, error)
GetRepoPath returns the full path of the repository referenced by an RPC Repository message. The errors returned are gRPC errors with relevant error codes and should be passed back to gRPC without further decoration.
Types ¶
type Command ¶ added in v0.3.0
Command encapsulates operations with commands creates with NewCommand
func GitCommandReader ¶ added in v0.3.0
GitCommandReader creates a git Command with the given args
func NewCommand ¶ added in v0.3.0
NewCommand creates a Command from an exec.Cmd
Click to show internal directories.
Click to hide internal directories.