MCPcopy Create free account
hub / github.com/danderson/netboot / mustFile

Function mustFile

pixiecore/cli/cli.go:89–96  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

87}
88
89func mustFile(path string) []byte {
90 bs, err := ioutil.ReadFile(path)
91 if err != nil {
92 fatalf("couldn't read file %q: %s", path, err)
93 }
94
95 return bs
96}
97
98func staticFromFlags(cmd *cobra.Command, kernel string, initrds []string, extraCmdline string) *pixiecore.Server {
99 cmdline, err := cmd.Flags().GetString("cmdline")

Callers 1

serverFromFlagsFunction · 0.85

Calls 1

fatalfFunction · 0.70

Tested by

no test coverage detected