feat: update

This commit is contained in:
Rogee
2024-11-29 17:46:58 +08:00
parent fbb511a9cd
commit f7de6e5a79
3 changed files with 14 additions and 6 deletions

View File

@@ -78,6 +78,10 @@ func Command(opt ...Option) Option {
}
}
func Arguments(f func(cmd *cobra.Command)) Option {
return f
}
func Version(ver string) Option {
return func(cmd *cobra.Command) {
cmd.Version = ver