Merge remote-tracking branch 'origin/main' into fix/issue18-reserved-flags

This commit is contained in:
max
2026-09-10 10:32:19 +08:00
9 changed files with 359 additions and 39 deletions
+4 -1
View File
@@ -377,8 +377,11 @@ func exitCodeFor(err error) ExitCode {
return ExitInternal
}
// runVersion 輸出版本資訊。
// runVersion 輸出版本資訊;不接受任何參數。
func runVersion(env *Env, args []string) error {
if len(args) > 0 {
return &ErrUsage{Msg: "version 不接受參數"}
}
fmt.Fprintf(env.Out, "teai version %s\n", Version)
return nil
}