🎉 start the project

This commit is contained in:
loveuer
2025-07-09 22:50:23 +08:00
commit 84348f9eaf
31 changed files with 9990 additions and 0 deletions

22
internal/cmd/cmd.go Normal file
View File

@ -0,0 +1,22 @@
package cmd
import (
"context"
"os"
"github.com/spf13/cobra"
)
var (
root *cobra.Command
)
func Init(ctx context.Context) {
root = rootCmd()
}
func Execute(ctx context.Context) {
if err := root.ExecuteContext(ctx); err != nil {
os.Exit(1)
}
}