docker-s3-backup/cmd/root.go

22 lines
322 B
Go
Raw Permalink Normal View History

2023-09-14 22:15:37 +00:00
package cmd
import (
"context"
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "dsb",
Short: "Docker S3 Backup - backup S3 buckets with Docker",
}
func Execute(ctx context.Context) {
if err := rootCmd.ExecuteContext(ctx); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}