mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-02-14 18:09:51 +00:00
* added strictmode flag and consts * updated code with strictmode * added flag for retryoperation * updated registry short flag * updated strictmode to ignore errors * fixed command description * cleaned up error/debug logs
15 lines
316 B
Go
15 lines
316 B
Go
package flags
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
type ExtractOpts struct {
|
|
*StoreRootOpts
|
|
DestinationDir string
|
|
}
|
|
|
|
func (o *ExtractOpts) AddFlags(cmd *cobra.Command) {
|
|
f := cmd.Flags()
|
|
|
|
f.StringVarP(&o.DestinationDir, "output", "o", "", "(Optional) Set the directory to output (defaults to current directory)")
|
|
}
|