Archived
1
This repository has been archived on 2025-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
playbookctl/cmd/backup.go
2024-12-19 18:48:26 +03:00

25 lines
451 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
func NewCommandBackup() *cobra.Command {
spaceCmd := &cobra.Command{
Use: "backup",
Short: "выполнить резервное копирование пространства",
RunE: backupRunE,
}
return spaceCmd
}
func backupRunE(_ *cobra.Command, args []string) error {
fmt.Println("[dummy] backup")
for _, elm := range args {
fmt.Printf("- %s\n", elm)
}
return nil
}