refactor: Use unified naming scheme for commands

This commit is contained in:
Felicitas Pojtinger
2021-11-29 23:07:19 +01:00
parent 1d9b756752
commit bc291fa883
11 changed files with 11 additions and 11 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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