1package tools
 2
 3import "runtime"
 4
 5var safeCommands = []string{
 6	// Bash builtins and core utils
 7	"cal",
 8	"date",
 9	"df",
10	"du",
11	"echo",
12	"env",
13	"free",
14	"groups",
15	"hostname",
16	"id",
17	"kill",
18	"killall",
19	"ls",
20	"nice",
21	"nohup",
22	"printenv",
23	"ps",
24	"pwd",
25	"set",
26	"time",
27	"timeout",
28	"top",
29	"type",
30	"uname",
31	"unset",
32	"uptime",
33	"whatis",
34	"whereis",
35	"which",
36	"whoami",
37
38	// Git
39	"git blame",
40	"git branch",
41	"git config --get",
42	"git config --list",
43	"git describe",
44	"git diff",
45	"git grep",
46	"git log",
47	"git ls-files",
48	"git ls-remote",
49	"git remote",
50	"git rev-parse",
51	"git shortlog",
52	"git show",
53	"git status",
54	"git tag",
55}
56
57func init() {
58	if runtime.GOOS == "windows" {
59		safeCommands = append(
60			safeCommands,
61			// Windows-specific commands
62			"ipconfig",
63			"nslookup",
64			"ping",
65			"systeminfo",
66			"tasklist",
67			"where",
68		)
69	}
70}