Constants.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using System;
  2. namespace Quadarax.Foundation.QConsole
  3. {
  4. public static class Constants
  5. {
  6. public static class Arguments
  7. {
  8. public static class Selection
  9. {
  10. public const string Code = "s";
  11. public const string Description = "Execute command with selection mode. You will be able to select values.";
  12. public const string Hint = "<enable>";
  13. public static class Clear
  14. {
  15. public const string Code = "c";
  16. public const string Description = "Clears all global selection cache.";
  17. public const string Hint = "<enable>";
  18. }
  19. public static class Delete
  20. {
  21. public const string Code = "d";
  22. public const string Description = "Delete specific ordinals from global selection cache.";
  23. public const string Hint = "<ordinal_values>";
  24. }
  25. public static class List
  26. {
  27. public const string Code = "l";
  28. public const string Description = "Disable list global selection cache.";
  29. public const string Hint = "<disaled>";
  30. }
  31. }
  32. public static class Lists
  33. {
  34. public static class PageMode
  35. {
  36. public const string Code = "p";
  37. public const string Description = "Enables paging mode. List shows items by pages.";
  38. public const string Hint = "<enables>";
  39. }
  40. public static class ItemsPerPage
  41. {
  42. public const string Code = "pp";
  43. public const string Description = "Defines number of items shown in one page. Use only in Paging mode.";
  44. public const string Hint = "<count_per_page>";
  45. }
  46. public static class Page
  47. {
  48. public const string Code = "pg";
  49. public const string Description = "Defines shown default page. Use only in Paging mode. If 0, then inactive.";
  50. public const string Hint = "<default_page>";
  51. }
  52. }
  53. }
  54. public static class Commands
  55. {
  56. public static class Help
  57. {
  58. public const string Name = "HELP";
  59. public const string Description = "Shows list of available commands and arguments.";
  60. public static class ArgCommandName
  61. {
  62. public const string Code = "n";
  63. public const string Hint = "command_name";
  64. public const string Description = "Name of command to list specification.";
  65. }
  66. }
  67. public static class Exit
  68. {
  69. public const string Name = "EXIT";
  70. public const string Description = "Exits interactive console.";
  71. }
  72. public static class Clear
  73. {
  74. public const string Name = "CLEAR";
  75. public const string Description = "Clears console window.";
  76. }
  77. public static class Selection
  78. {
  79. public const string Name = "SELECTION";
  80. public const string Description = "Shows global selection cache and provide operations";
  81. }
  82. public static class Print
  83. {
  84. public const string Name = "PRINT";
  85. public const string Description = "Print outs variable value to console";
  86. public static class ArgCommandClipboard
  87. {
  88. public const string Code = "c";
  89. public const string Hint = "enabled";
  90. public const string Description = "Copy output to clipboard.";
  91. }
  92. public static class ArgCommandValue
  93. {
  94. public const string Code = "v";
  95. public const string Hint = "value";
  96. public const string Description = "Variable name code @<selection_ordinal>.";
  97. }
  98. }
  99. }
  100. }
  101. }