1 namespace Castle
.NewGenerator
.Core
.MR
5 [Generator("controller", "New Controller")]
6 [GeneratorPanel(typeof(NewControllerDialog
))]
7 [GeneratorOptions(typeof(NewController
.CLIOptions
))]
8 public class NewController
: BaseGenerator
11 private string[] actions
;
13 [Param(Required
=true)]
21 public string[] Actions
23 get { return actions; }
24 set { actions = value; }
27 public override void Generate(GeneratorContext context
, IGeneratorService generator
)
32 public class CLIOptions
: GeneratorConfigurer
<NewController
>
37 public override void Configure(NewController generator
, string[] args
)
41 generator
.Name
= name
;
43 base.Configure(generator
, args
);