mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-02-14 18:09:51 +00:00
* fixed typo in hauler store save * update internal/flags/save.go Co-authored-by: Jacob Blain Christen <dweomer5@gmail.com> Signed-off-by: Zack Brady <zackbrady123@gmail.com> --------- Signed-off-by: Zack Brady <zackbrady123@gmail.com> Co-authored-by: Jacob Blain Christen <dweomer5@gmail.com>
17 lines
456 B
Go
17 lines
456 B
Go
package flags
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
type SaveOpts struct {
|
|
*StoreRootOpts
|
|
FileName string
|
|
Platform string
|
|
}
|
|
|
|
func (o *SaveOpts) AddFlags(cmd *cobra.Command) {
|
|
f := cmd.Flags()
|
|
|
|
f.StringVarP(&o.FileName, "filename", "f", "haul.tar.zst", "(Optional) Specify the name of outputted archive")
|
|
f.StringVarP(&o.Platform, "platform", "p", "", "(Optional) Specify the platform for runtime imports... i.e. linux/amd64 (unspecified implies all)")
|
|
}
|