Removed initial binder support which was replaced with more general approach.
[castle.git] / MonoRail / NewGenerator / Castle.NewGenerator.Core / MR / NewController.cs
blob0dd6d564321d7928e44b5481aa5ee8fc38db4d45
1 namespace Castle.NewGenerator.Core.MR
3 using Mono.GetOptions;
5 [Generator("controller", "New Controller")]
6 [GeneratorPanel(typeof(NewControllerDialog))]
7 [GeneratorOptions(typeof(NewController.CLIOptions))]
8 public class NewController : BaseGenerator
10 private string name;
11 private string[] actions;
13 [Param(Required=true)]
14 public string Name
16 get { return name; }
17 set { name = value; }
20 [Param]
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>
34 [Option("name", 'n')]
35 public string name;
37 public override void Configure(NewController generator, string[] args)
39 ProcessArgs(args);
41 generator.Name = name;
43 base.Configure(generator, args);