refactor: Use string-backed enums consistently

This commit is contained in:
Felicitas Pojtinger
2021-12-15 21:11:18 +01:00
parent 6bc9c84579
commit 8d922ccd81
7 changed files with 19 additions and 29 deletions
+3 -2
View File
@@ -6,8 +6,9 @@ import (
)
var driveCmd = &cobra.Command{
Use: "drive",
Short: "Manage tape drives",
Use: "drive",
Aliases: []string{"dri", "d"},
Short: "Manage tape drives",
}
func init() {
+3 -2
View File
@@ -6,8 +6,9 @@ import (
)
var inventoryCmd = &cobra.Command{
Use: "inventory",
Short: "Get contents and metadata of tape or tar file from the index",
Use: "inventory",
Aliases: []string{"inv", "i"},
Short: "Get contents and metadata of tape or tar file from the index",
}
func init() {
+3 -2
View File
@@ -6,8 +6,9 @@ import (
)
var operationCmd = &cobra.Command{
Use: "operation",
Short: "Perform operations on tape or tar file and the index",
Use: "operation",
Aliases: []string{"ope", "o", "op"},
Short: "Perform operations on tape or tar file and the index",
}
func init() {
+3 -2
View File
@@ -6,8 +6,9 @@ import (
)
var recoveryCmd = &cobra.Command{
Use: "recovery",
Short: "Recover tapes or tar files",
Use: "recovery",
Aliases: []string{"rec", "r"},
Short: "Recover tapes or tar files",
}
func init() {