Files
scratchbox/cmd/pastebin/main.go
T

31 lines
486 B
Go

package main
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
func main() {
cmd := newRootCmd()
if err := cmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
func newRootCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "scratchbox",
Short: "Scratchbox CLI",
SilenceUsage: true,
SilenceErrors: true,
RunE: func(cmd *cobra.Command, _ []string) error {
return cmd.Help()
},
}
cmd.AddCommand(newServerCmd())
return cmd
}