termcloud/cmd/tcman/main.go
2025-08-07 19:10:13 +01:00

28 lines
568 B
Go

package main
import (
"fmt"
"os"
"git.keircn.com/keiran/termcloud/internal/cli"
"github.com/spf13/cobra"
)
func main() {
rootCmd := &cobra.Command{
Use: "tcman",
Short: "TermCloud Management CLI",
Long: "Command line interface for managing TermCloud accounts, buckets, and files",
}
rootCmd.AddCommand(cli.NewAccountCmd())
rootCmd.AddCommand(cli.NewBucketCmd())
rootCmd.AddCommand(cli.NewFileCmd())
rootCmd.AddCommand(cli.NewConfigCmd())
if err := rootCmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
}