fix: issues
This commit is contained in:
@@ -31,6 +31,7 @@ func Command() atom.Option {
|
||||
return atom.Command(
|
||||
atom.Name("tenants"),
|
||||
atom.Short("租户相关操作"),
|
||||
atom.Example("create Name --slug [slug] --contact [wechat_contact]"),
|
||||
atom.Command(
|
||||
atom.Name("create"),
|
||||
atom.Providers(defaultProviders().With(
|
||||
@@ -40,6 +41,7 @@ func Command() atom.Option {
|
||||
)),
|
||||
atom.Arguments(func(cmd *cobra.Command) {
|
||||
cmd.Flags().String("slug", "", "slug")
|
||||
cmd.Flags().String("contact", "", "contact")
|
||||
}),
|
||||
atom.RunE(func(cmd *cobra.Command, args []string) error {
|
||||
return container.Container.Invoke(func(t *tenant.Create) error {
|
||||
|
||||
Reference in New Issue
Block a user