github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/templates.go (about)

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