26 lines
408 B
Go
26 lines
408 B
Go
|
|
package cli
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
"os"
|
||
|
|
|
||
|
|
"github.com/spf13/cobra"
|
||
|
|
)
|
||
|
|
|
||
|
|
var rootCmd = &cobra.Command{
|
||
|
|
Use: "booking-system",
|
||
|
|
Short: "Video Conference Booking System CLI",
|
||
|
|
Long: "Command line interface for managing the video conference booking system",
|
||
|
|
}
|
||
|
|
|
||
|
|
func Execute() {
|
||
|
|
if err := rootCmd.Execute(); err != nil {
|
||
|
|
fmt.Println(err)
|
||
|
|
os.Exit(1)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
// Add subcommands here in later tasks
|
||
|
|
}
|