From 7f3ee66b1f00100565ec59558deb3ad7c1542de9 Mon Sep 17 00:00:00 2001 From: Jean-Marc Andre Date: Tue, 16 Feb 2021 23:12:29 +0100 Subject: [PATCH] cleaned volume command --- pkg/cmd/volume.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/cmd/volume.go b/pkg/cmd/volume.go index b2a70ff..4cd2e7f 100644 --- a/pkg/cmd/volume.go +++ b/pkg/cmd/volume.go @@ -55,13 +55,6 @@ and usage of using your command. For example: Cobra is a CLI library for Go that empowers applications. This application is a tool to generate the needed files to quickly create a Cobra application.`, - Run: func(cmd *cobra.Command, args []string) { - paths, _ := cmd.Flags().GetStringSlice("path") - tag, _ := cmd.Flags().GetString("tag") - if err := backup.BackupVolume(tag, paths); err != nil { - os.Exit(1) - } - }, } func init() {