added remote and multiple file fetch to sync (#405)

* updated sync flag and related logs [breaking change]
* fixed typo in sync flag name
* and the last typo fix...
* added remote and multiple file fetch to sync

---------

Signed-off-by: Zack Brady <zackbrady123@gmail.com>
This commit is contained in:
Zack Brady
2025-02-05 09:13:38 -05:00
committed by GitHub
parent 535a82c1b5
commit 39325585eb
3 changed files with 70 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ type SyncOpts struct {
Platform string
Registry string
ProductRegistry string
TempOverride string
}
func (o *SyncOpts) AddFlags(cmd *cobra.Command) {
@@ -24,4 +25,5 @@ func (o *SyncOpts) AddFlags(cmd *cobra.Command) {
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", "g", "", "(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)")
f.StringVarP(&o.TempOverride, "tempdir", "t", "", "(Optional) Override the default temporary directiory determined by the OS")
}