mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-05-19 07:37:25 +00:00
* initial desc formatting/updates * fixed typos * updated commands base on feedback * more updates based on feedback --------- Signed-off-by: Zack Brady <zackbrady123@gmail.com>
25 lines
1.1 KiB
Go
25 lines
1.1 KiB
Go
package flags
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
type SyncOpts struct {
|
|
*StoreRootOpts
|
|
ContentFiles []string
|
|
Key string
|
|
Products []string
|
|
Platform string
|
|
Registry string
|
|
ProductRegistry string
|
|
}
|
|
|
|
func (o *SyncOpts) AddFlags(cmd *cobra.Command) {
|
|
f := cmd.Flags()
|
|
|
|
f.StringSliceVarP(&o.ContentFiles, "files", "f", []string{}, "Location of content manifests (files)... i.e. --files ./rke2-files.yaml")
|
|
f.StringVarP(&o.Key, "key", "k", "", "(Optional) Location of public key to use for signature verification")
|
|
f.StringSliceVar(&o.Products, "products", []string{}, "(Optional) Specify the product name to fetch collections from the product registry i.e. rancher=v2.8.5,rke2=v1.28.11+rke2r1")
|
|
f.StringVarP(&o.Platform, "platform", "p", "", "(Optional) Specify the platform of the image... i.e linux/amd64 (defaults to all)")
|
|
f.StringVarP(&o.Registry, "registry", "r", "", "(Optional) Specify the registry of the image for images that do not alredy define one")
|
|
f.StringVarP(&o.ProductRegistry, "product-registry", "c", "", "(Optional) Specify the product registry. Defaults to RGS Carbide Registry (rgcrprod.azurecr.us)")
|
|
}
|