25 lines
462 B
Go
25 lines
462 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewCommandRestore() *cobra.Command {
|
|
spaceCmd := &cobra.Command{
|
|
Use: "restore",
|
|
Short: "восстановить резервную копированию пространства",
|
|
RunE: restoreRunE,
|
|
}
|
|
|
|
return spaceCmd
|
|
}
|
|
|
|
func restoreRunE(_ *cobra.Command, args []string) error {
|
|
fmt.Println("[dummy] restore")
|
|
for _, elm := range args {
|
|
fmt.Printf("- %s\n", elm)
|
|
}
|
|
return nil
|
|
}
|