refactor: Use unified naming scheme for commands
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user