From bc291fa883e0549c50fc254f1c2e296a97504fc4 Mon Sep 17 00:00:00 2001 From: Felicitas Pojtinger Date: Mon, 29 Nov 2021 23:07:19 +0100 Subject: [PATCH] refactor: Use unified naming scheme for commands --- cmd/stbak/cmd/archive.go | 2 +- cmd/stbak/cmd/drive_eject.go | 2 +- cmd/stbak/cmd/drive_tell.go | 2 +- cmd/stbak/cmd/find.go | 2 +- cmd/stbak/cmd/list.go | 2 +- cmd/stbak/cmd/move.go | 2 +- cmd/stbak/cmd/recovery_list.go | 2 +- cmd/stbak/cmd/recovery_restore.go | 2 +- cmd/stbak/cmd/remove.go | 2 +- cmd/stbak/cmd/restore.go | 2 +- cmd/stbak/cmd/update.go | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cmd/stbak/cmd/archive.go b/cmd/stbak/cmd/archive.go index aaa1679..e64a925 100644 --- a/cmd/stbak/cmd/archive.go +++ b/cmd/stbak/cmd/archive.go @@ -26,7 +26,7 @@ const ( var archiveCmd = &cobra.Command{ Use: "archive", Aliases: []string{"a"}, - Short: "Archive a file or directory", + Short: "Archive a file or directory to tape or tar file", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/drive_eject.go b/cmd/stbak/cmd/drive_eject.go index fe6d09a..e6d077e 100644 --- a/cmd/stbak/cmd/drive_eject.go +++ b/cmd/stbak/cmd/drive_eject.go @@ -12,7 +12,7 @@ import ( var driveEjectCmd = &cobra.Command{ Use: "eject", Aliases: []string{"e"}, - Short: "Eject the tape (tape only)", + Short: "Eject tape from drive", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/drive_tell.go b/cmd/stbak/cmd/drive_tell.go index 9bc231d..67d0e96 100644 --- a/cmd/stbak/cmd/drive_tell.go +++ b/cmd/stbak/cmd/drive_tell.go @@ -13,7 +13,7 @@ import ( var driveTellCmd = &cobra.Command{ Use: "tell", Aliases: []string{"t"}, - Short: "Get the current record (tape only)", + Short: "Get the current record on the tape", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/find.go b/cmd/stbak/cmd/find.go index be26004..cbea2dc 100644 --- a/cmd/stbak/cmd/find.go +++ b/cmd/stbak/cmd/find.go @@ -19,7 +19,7 @@ const ( var findCmd = &cobra.Command{ Use: "find", Aliases: []string{"f"}, - Short: "Find a file or directory by matching against a regex", + Short: "Find a file or directory on tape or tar file by matching against a regex", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/list.go b/cmd/stbak/cmd/list.go index 4439911..8e02b27 100644 --- a/cmd/stbak/cmd/list.go +++ b/cmd/stbak/cmd/list.go @@ -14,7 +14,7 @@ import ( var listCmd = &cobra.Command{ Use: "list", Aliases: []string{"l"}, - Short: "List the contents of a directory in the index", + Short: "List the contents of a directory on tape or tar file ", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/move.go b/cmd/stbak/cmd/move.go index fc05d56..b9899d2 100644 --- a/cmd/stbak/cmd/move.go +++ b/cmd/stbak/cmd/move.go @@ -18,7 +18,7 @@ import ( var moveCmd = &cobra.Command{ Use: "move", Aliases: []string{"m"}, - Short: "Move a file from tape or tar file and index", + Short: "Move a file or directory on tape or tar file", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/recovery_list.go b/cmd/stbak/cmd/recovery_list.go index 3ba090a..0667880 100644 --- a/cmd/stbak/cmd/recovery_list.go +++ b/cmd/stbak/cmd/recovery_list.go @@ -17,7 +17,7 @@ import ( var recoveryListCmd = &cobra.Command{ Use: "list", Aliases: []string{"l"}, - Short: "List contents of tape or tar file", + Short: "List contents of tape or tar file without the index", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/recovery_restore.go b/cmd/stbak/cmd/recovery_restore.go index 91b157b..439afcd 100644 --- a/cmd/stbak/cmd/recovery_restore.go +++ b/cmd/stbak/cmd/recovery_restore.go @@ -24,7 +24,7 @@ const ( var recoveryRestoreCmd = &cobra.Command{ Use: "restore", Aliases: []string{"r"}, - Short: "Restore a file", + Short: "Restore a file or directory from tape or tar file by record and block", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/remove.go b/cmd/stbak/cmd/remove.go index 6b7b444..888a0f3 100644 --- a/cmd/stbak/cmd/remove.go +++ b/cmd/stbak/cmd/remove.go @@ -25,7 +25,7 @@ const ( var removeCmd = &cobra.Command{ Use: "remove", Aliases: []string{"r"}, - Short: "Remove a file from tape or tar file and index", + Short: "Remove a file or directory from tape or tar file", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/restore.go b/cmd/stbak/cmd/restore.go index d4e86f0..94823ce 100644 --- a/cmd/stbak/cmd/restore.go +++ b/cmd/stbak/cmd/restore.go @@ -24,7 +24,7 @@ const ( var restoreCmd = &cobra.Command{ Use: "restore", Aliases: []string{"r"}, - Short: "Restore a file or directory", + Short: "Restore a file or directory from tape or tar file", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err diff --git a/cmd/stbak/cmd/update.go b/cmd/stbak/cmd/update.go index 4760d57..ff312c7 100644 --- a/cmd/stbak/cmd/update.go +++ b/cmd/stbak/cmd/update.go @@ -25,7 +25,7 @@ const ( var updateCmd = &cobra.Command{ Use: "update", Aliases: []string{"u"}, - Short: "Update a file's content and metadata", + Short: "Update a file or directory's content and metadata on tape or tar file", RunE: func(cmd *cobra.Command, args []string) error { if err := viper.BindPFlags(cmd.PersistentFlags()); err != nil { return err