示例#1
0
文件: Program.cs 项目: EkardNT/CS143B
 private static void On(CreateCommand command)
 {
     fileSystem.Create(command.LogicalName);
     WriteSuccessLine(string.Format("file {0} created", command.LogicalName));
 }
示例#2
0
 public override bool TryBuildCommand(string[] args, out object command)
 {
     var cr = (command = new CreateCommand()) as CreateCommand;
     return RequireLogicalName(args, 0, out cr.LogicalName);
 }