22 lines
322 B
Go
22 lines
322 B
Go
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)
|
|
}
|
|
}
|