Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCmd ¶
func RunCmd(ctx context.Context, dir string, command string, commandParams ...string) (string, error)
RunCmd shell command. Running git mod, for example. inpsired by cmd/go/internal/modfetch/codehost/codehost.go:318:Run from go mod But go mod function looks too complicated so for PoC/MVP I decided to implement simpler solution
func SanitizePath ¶ added in v0.4.5
SanitizePath replace `/` with `-` to prevent troubles with creating files/dirs for modules that have '/' in version
Types ¶
Click to show internal directories.
Click to hide internal directories.