mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-02-14 18:09:51 +00:00
fix and support containerd imports of hauls (#492)
* fixed hauler save for containerd * added flag for containerd compatibility
This commit is contained in:
@@ -7,8 +7,9 @@ import (
|
||||
|
||||
type SaveOpts struct {
|
||||
*StoreRootOpts
|
||||
FileName string
|
||||
Platform string
|
||||
FileName string
|
||||
Platform string
|
||||
ContainerdCompatibility bool
|
||||
}
|
||||
|
||||
func (o *SaveOpts) AddFlags(cmd *cobra.Command) {
|
||||
@@ -16,4 +17,6 @@ func (o *SaveOpts) AddFlags(cmd *cobra.Command) {
|
||||
|
||||
f.StringVarP(&o.FileName, "filename", "f", consts.DefaultHaulerArchiveName, "(Optional) Specify the name of outputted haul")
|
||||
f.StringVarP(&o.Platform, "platform", "p", "", "(Optional) Specify the platform for runtime imports... i.e. linux/amd64 (unspecified implies all)")
|
||||
cmd.Flags().BoolVar(&o.ContainerdCompatibility, "containerd", false, "(Optional) Enable import compatibility containerd... removes oci-layout from the haul")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user