MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / metadataCreateCmd

Function metadataCreateCmd

src/cmd/linuxkit/metadata.go:21–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func metadataCreateCmd() *cobra.Command {
22 cmd := &cobra.Command{
23 Use: "create",
24 Short: "create an ISO with metadata",
25 Long: `Create an ISO file with metadata in it.
26 Provided metadata will be written to '/config' in the ISO.
27 This is compatible with the linuxkit/metadata package.`,
28 Args: cobra.ExactArgs(2),
29 Example: "linuxkit metadata create file.iso \"metadata\"",
30 RunE: func(cmd *cobra.Command, args []string) error {
31 isoImage := args[0]
32 metadata := args[1]
33
34 return WriteMetadataISO(isoImage, []byte(metadata))
35 },
36 }
37
38 return cmd
39}
40
41func metadataCmd() *cobra.Command {
42

Callers 1

metadataCmdFunction · 0.85

Calls 1

WriteMetadataISOFunction · 0.85

Tested by

no test coverage detected