feat: provider support job mode

This commit is contained in:
Rogee
2024-12-27 20:52:18 +08:00
parent 2fbc3d9fee
commit cdcf20ed33
7 changed files with 131 additions and 60 deletions

View File

@@ -18,12 +18,10 @@ func CommandGenProvider(root *cobra.Command) {
Use: "provider",
Aliases: []string{"p"},
Short: "Generate providers",
Long: `
// @provider
Long: `// @provider
// @provider:[except|only] [returnType] [group]
// when except add tag: inject:"false"
// when only add tag: inject:"true"
`,
// when only add tag: inject:"true"`,
RunE: commandGenProviderE,
}