private static Command Translate(RoomieCommand command)
 {
     return new Command(
         arguments: command.Arguments.Select(Translate).ToArray(),
         description: command.Description,
         group: command.Group,
         name: command.Name
     );
 }
示例#2
0
 public static IEnumerable <RoomieCommandArgument> GetArgumentsFromAttributes(this RoomieCommand command)
 {
     return(GetArgumentsFromAttributes(command.GetType()));
 }