forked from u-root/u-root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplates.go
175 lines (172 loc) · 7.19 KB
/
templates.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
// Copyright 2015-2020 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
// TODO: make templates able to include other templates.
// e.g. "all" below should just say "core" and "boot". Use it to replace
// the old 'systemboot' template.
// Or just call it a day, now that we have the new directory structure, and dump the templates
// completely; that may be our best bet.
var templates = map[string][]string{
"all": {
"github.com/u-root/u-root/cmds/core/*",
"github.com/u-root/u-root/cmds/boot/*boot*",
},
"boot": {
"github.com/u-root/u-root/cmds/boot/*boot*",
},
// Absolutely everything, including experimental commands.
"world": {
"github.com/u-root/u-root/cmds/*/*",
},
// Core should be things you don't want to live without.
"core": {
"github.com/u-root/u-root/cmds/core/*",
},
// Minimal should be things you can't live without.
"minimal": {
"github.com/u-root/u-root/cmds/core/blkid",
"github.com/u-root/u-root/cmds/core/cat",
"github.com/u-root/u-root/cmds/core/chmod",
"github.com/u-root/u-root/cmds/core/cmp",
"github.com/u-root/u-root/cmds/core/cp",
"github.com/u-root/u-root/cmds/core/date",
"github.com/u-root/u-root/cmds/core/dd",
"github.com/u-root/u-root/cmds/core/df",
"github.com/u-root/u-root/cmds/core/dhclient",
"github.com/u-root/u-root/cmds/core/dmesg",
"github.com/u-root/u-root/cmds/core/echo",
"github.com/u-root/u-root/cmds/core/elvish",
"github.com/u-root/u-root/cmds/core/find",
"github.com/u-root/u-root/cmds/core/free",
"github.com/u-root/u-root/cmds/core/gpgv",
"github.com/u-root/u-root/cmds/core/grep",
"github.com/u-root/u-root/cmds/core/gzip",
"github.com/u-root/u-root/cmds/core/hostname",
"github.com/u-root/u-root/cmds/core/id",
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/insmod",
"github.com/u-root/u-root/cmds/core/installcommand",
"github.com/u-root/u-root/cmds/core/io",
"github.com/u-root/u-root/cmds/core/ip",
"github.com/u-root/u-root/cmds/core/kexec",
"github.com/u-root/u-root/cmds/core/kill",
"github.com/u-root/u-root/cmds/core/ln",
"github.com/u-root/u-root/cmds/core/losetup",
"github.com/u-root/u-root/cmds/core/ls",
"github.com/u-root/u-root/cmds/core/lsmod",
"github.com/u-root/u-root/cmds/core/mkdir",
"github.com/u-root/u-root/cmds/core/mknod",
"github.com/u-root/u-root/cmds/core/mount",
"github.com/u-root/u-root/cmds/core/msr",
"github.com/u-root/u-root/cmds/core/mv",
"github.com/u-root/u-root/cmds/core/pci",
"github.com/u-root/u-root/cmds/core/ping",
"github.com/u-root/u-root/cmds/core/printenv",
"github.com/u-root/u-root/cmds/core/ps",
"github.com/u-root/u-root/cmds/core/pwd",
"github.com/u-root/u-root/cmds/core/readlink",
"github.com/u-root/u-root/cmds/core/rm",
"github.com/u-root/u-root/cmds/core/rmmod",
"github.com/u-root/u-root/cmds/core/seq",
"github.com/u-root/u-root/cmds/core/shutdown",
"github.com/u-root/u-root/cmds/core/sleep",
"github.com/u-root/u-root/cmds/core/sync",
"github.com/u-root/u-root/cmds/core/tail",
"github.com/u-root/u-root/cmds/core/tee",
"github.com/u-root/u-root/cmds/core/truncate",
"github.com/u-root/u-root/cmds/core/umount",
"github.com/u-root/u-root/cmds/core/uname",
"github.com/u-root/u-root/cmds/core/unshare",
"github.com/u-root/u-root/cmds/core/wc",
"github.com/u-root/u-root/cmds/core/wget",
"github.com/u-root/u-root/cmds/core/which",
},
// coreboot-app minimal environment
"coreboot-app": {
"github.com/u-root/u-root/cmds/core/cat",
"github.com/u-root/u-root/cmds/exp/cbmem",
"github.com/u-root/u-root/cmds/core/chroot",
"github.com/u-root/u-root/cmds/core/cp",
"github.com/u-root/u-root/cmds/core/dd",
"github.com/u-root/u-root/cmds/core/dhclient",
"github.com/u-root/u-root/cmds/core/dmesg",
"github.com/u-root/u-root/cmds/core/elvish",
"github.com/u-root/u-root/cmds/core/find",
"github.com/u-root/u-root/cmds/core/grep",
"github.com/u-root/u-root/cmds/core/id",
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/insmod",
"github.com/u-root/u-root/cmds/core/ip",
"github.com/u-root/u-root/cmds/core/kill",
"github.com/u-root/u-root/cmds/core/ls",
"github.com/u-root/u-root/cmds/core/mount",
"github.com/u-root/u-root/cmds/core/pci",
"github.com/u-root/u-root/cmds/core/ping",
"github.com/u-root/u-root/cmds/core/ps",
"github.com/u-root/u-root/cmds/core/pwd",
"github.com/u-root/u-root/cmds/core/rm",
"github.com/u-root/u-root/cmds/core/rmmod",
"github.com/u-root/u-root/cmds/core/shutdown",
"github.com/u-root/u-root/cmds/core/sshd",
"github.com/u-root/u-root/cmds/core/switch_root",
"github.com/u-root/u-root/cmds/core/tail",
"github.com/u-root/u-root/cmds/core/tee",
"github.com/u-root/u-root/cmds/core/uname",
"github.com/u-root/u-root/cmds/core/wget",
},
// If a name is commented out here, we expect to make it work.
// if you don't see a name here, and it is in core, we expect it
// not to work.
"plan9": {
"github.com/u-root/u-root/cmds/core/basename",
"github.com/u-root/u-root/cmds/core/cat",
"github.com/u-root/u-root/cmds/core/chmod",
"github.com/u-root/u-root/cmds/core/cmp",
"github.com/u-root/u-root/cmds/core/cp",
"github.com/u-root/u-root/cmds/core/cpio",
"github.com/u-root/u-root/cmds/core/date",
"github.com/u-root/u-root/cmds/core/dd",
"github.com/u-root/u-root/cmds/core/dirname",
"github.com/u-root/u-root/cmds/core/echo",
//"github.com/u-root/u-root/cmds/core/elvish",
"github.com/u-root/u-root/cmds/core/false",
"github.com/u-root/u-root/cmds/core/find",
//"github.com/u-root/u-root/cmds/core/free",
"github.com/u-root/u-root/cmds/core/gpgv",
"github.com/u-root/u-root/cmds/core/gpt",
"github.com/u-root/u-root/cmds/core/grep",
"github.com/u-root/u-root/cmds/core/gzip",
"github.com/u-root/u-root/cmds/core/hexdump",
"github.com/u-root/u-root/cmds/core/hostname",
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/installcommand",
"github.com/u-root/u-root/cmds/core/io",
//"github.com/u-root/u-root/cmds/core/kexec",
//"github.com/u-root/u-root/cmds/core/kill",
"github.com/u-root/u-root/cmds/core/ls",
"github.com/u-root/u-root/cmds/core/mkdir",
//"github.com/u-root/u-root/cmds/core/mount",
//"github.com/u-root/u-root/cmds/core/msr",
"github.com/u-root/u-root/cmds/core/mv",
//"github.com/u-root/u-root/cmds/core/pci",
"github.com/u-root/u-root/cmds/core/ping",
"github.com/u-root/u-root/cmds/core/printenv",
//"github.com/u-root/u-root/cmds/core/ps",
"github.com/u-root/u-root/cmds/core/pwd",
"github.com/u-root/u-root/cmds/core/rm",
"github.com/u-root/u-root/cmds/core/seq",
"github.com/u-root/u-root/cmds/core/sleep",
"github.com/u-root/u-root/cmds/core/tail",
"github.com/u-root/u-root/cmds/core/tee",
"github.com/u-root/u-root/cmds/core/truncate",
//"github.com/u-root/u-root/cmds/core/uname",
//"github.com/u-root/u-root/cmds/core/unshare",
"github.com/u-root/u-root/cmds/core/wc",
"github.com/u-root/u-root/cmds/core/wget",
"github.com/u-root/u-root/cmds/core/which",
"github.com/u-root/u-root/cmds/exp/console",
"github.com/u-root/u-root/cmds/exp/rush",
"github.com/u-root/u-root/cmds/core/sshd",
},
}