2024-12-26 19:51:31 -08:00

27 lines
349 B
Go

package cmd
import (
"context"
"fmt"
"os"
"time"
)
func Init() {
initRoot(
initVersion(),
initUpdate(),
initNew(),
)
}
func Run(ctx context.Context) {
if err := rootCmd.ExecuteContext(ctx); err != nil {
fmt.Printf("❌ %s\n", err.Error())
time.Sleep(300 * time.Millisecond)
os.Exit(1)
}
time.Sleep(300 * time.Millisecond)
}