mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
18 lines
279 B
Go
18 lines
279 B
Go
// Phase 15 — flag.Parse CLI, benign.
|
|
// Echoes a fixed string; argv is discarded.
|
|
|
|
package entry
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"os/exec"
|
|
)
|
|
|
|
func Run() {
|
|
flag.Parse()
|
|
_ = flag.Args()
|
|
cmd := exec.Command("echo", "hello")
|
|
out, _ := cmd.CombinedOutput()
|
|
fmt.Print(string(out))
|
|
}
|