From 7083f3a4f30f903b6b426c475fb6e0b36a71cae3 Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Fri, 29 Mar 2024 13:40:24 -0400 Subject: [PATCH] deprecate the cache flag instead of remove Signed-off-by: Adam Martin --- cmd/hauler/cli/store/flags.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/hauler/cli/store/flags.go b/cmd/hauler/cli/store/flags.go index cb469ce..0b4a2d1 100644 --- a/cmd/hauler/cli/store/flags.go +++ b/cmd/hauler/cli/store/flags.go @@ -18,11 +18,13 @@ const ( type RootOpts struct { StoreDir string + CacheDir string } func (o *RootOpts) AddArgs(cmd *cobra.Command) { pf := cmd.PersistentFlags() pf.StringVarP(&o.StoreDir, "store", "s", DefaultStoreName, "Location to create store at") + pf.StringVar(&o.CacheDir, "cache", "", "(deprecated flag and currently not used)") } func (o *RootOpts) Store(ctx context.Context) (*store.Layout, error) {