mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-05-19 23:57:37 +00:00
* fix: move constant and flags to prevent loop * feat: add tls cert to serve * fix: add tls cli description * fix: remove unnecessary code * small updates/fixed unit test errors * fix: migrate all flags, use exported vars * fix: standardize to AddFlags --------- Signed-off-by: will <30413278+wcrum@users.noreply.github.com> Co-authored-by: Zack Brady <zackbrady123@gmail.com>
15 lines
257 B
Go
15 lines
257 B
Go
package flags
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
type SaveOpts struct {
|
|
*StoreRootOpts
|
|
FileName string
|
|
}
|
|
|
|
func (o *SaveOpts) AddFlags(cmd *cobra.Command) {
|
|
f := cmd.Flags()
|
|
|
|
f.StringVarP(&o.FileName, "filename", "f", "haul.tar.zst", "Name of archive")
|
|
}
|