Skip to content

Commit

Permalink
Add parameters for ez
Browse files Browse the repository at this point in the history
  • Loading branch information
gentee committed Apr 4, 2023
1 parent bbccd9a commit dee75ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions console.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func CheckConsole() bool {
}
}
}
args := os.Args[1:]
if len(args) > 1 {
os.Setenv("EZCMD", strings.Join(args, ` `))
}
answer, err := lib.LocalGet(port, fmt.Sprintf("api/run?name=%s&silent=true&console=true",
os.Args[1]))
if err != nil {
Expand Down

0 comments on commit dee75ce

Please sign in to comment.