[teamai] Push 87 resource(s) from XingfenD

This commit is contained in:
2026-09-10 16:10:45 +08:00
parent 425c9c078a
commit 65c04def51
1314 changed files with 211681 additions and 0 deletions
@@ -0,0 +1,28 @@
package main
import (
"errors"
"os"
"github.com/you/myapp/cmd"
)
// Pattern for mapping errors to exit codes.
func mainWithExitCodes() {
if err := cmd.Execute(); err != nil {
// Cobra already printed the error via RunE
var exitErr *ExitError
if errors.As(err, &exitErr) {
os.Exit(exitErr.Code)
}
os.Exit(1)
}
}
type ExitError struct {
Code int
Err error
}
func (e *ExitError) Error() string { return e.Err.Error() }
func (e *ExitError) Unwrap() error { return e.Err }