Test.cs 711 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Text.RegularExpressions;
  6. namespace TodoList
  7. {
  8. [Command(
  9. Name: "test",
  10. LongHelpText: "This command exists only for testing purposes. It doesn't do anything.",
  11. ShortDescription: "test!",
  12. ErrorText: "How did you manage to fuck that up?",
  13. Synonyms: "syn-test ttt"
  14. )]
  15. internal class Test : ICommand
  16. {
  17. [DefaultSwitch] [SwitchDocumentation("The value of this switch will be echoed to the console.")] public int foo = 2;
  18. public void Invoke(Dictionary<String, Object> PipedArguments)
  19. {
  20. Console.WriteLine(foo);
  21. }
  22. }
  23. }