debug
This commit is contained in:
parent
69b891d598
commit
751d90c840
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ type BasicOptions struct {
|
||||||
|
|
||||||
func Which(cmd string, options BasicOptions) (dir string, err error) {
|
func Which(cmd string, options BasicOptions) (dir string, err error) {
|
||||||
|
|
||||||
|
fmt.Println(options.Env)
|
||||||
|
fmt.Println(options.Sources)
|
||||||
|
|
||||||
var sourceCommand strings.Builder
|
var sourceCommand strings.Builder
|
||||||
for _, value := range options.Sources {
|
for _, value := range options.Sources {
|
||||||
sourceCommand.WriteString(fmt.Sprintf("source %s && ", value))
|
sourceCommand.WriteString(fmt.Sprintf("source %s && ", value))
|
||||||
|
|
Loading…
Reference in a new issue