clio 0.0.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/CHANGES +66 -0
  2. data/MANIFEST +48 -169
  3. data/README +13 -17
  4. data/RELEASE +8 -0
  5. data/VERSION +1 -0
  6. data/lib/clio/buffer.rb +93 -0
  7. data/lib/clio/commandable.rb +71 -69
  8. data/lib/clio/commandline.rb +429 -230
  9. data/lib/clio/consoleutils.rb +0 -16
  10. data/lib/clio/facets/kernel.rb +13 -0
  11. data/lib/clio/facets/string.rb +25 -0
  12. data/lib/clio/layout.rb +14 -0
  13. data/lib/clio/layout/flow.rb +1 -0
  14. data/lib/clio/layout/line.rb +23 -0
  15. data/lib/clio/layout/list.rb +33 -0
  16. data/lib/clio/layout/split.rb +122 -0
  17. data/lib/clio/layout/stack.rb +17 -0
  18. data/lib/clio/layout/table.rb +46 -0
  19. data/lib/clio/progressbar.rb +189 -210
  20. data/lib/clio/string.rb +116 -109
  21. data/lib/clio/usage.rb +184 -0
  22. data/lib/clio/usage/argument.rb +84 -0
  23. data/lib/clio/usage/command.rb +440 -0
  24. data/lib/clio/usage/interface.rb +122 -0
  25. data/lib/clio/usage/main.rb +165 -0
  26. data/lib/clio/usage/option.rb +251 -0
  27. data/lib/clio/usage/parser.rb +191 -0
  28. data/lib/clio/usage/signature.rb +55 -0
  29. data/meta/abstract +3 -0
  30. data/meta/authors +1 -0
  31. data/meta/created +1 -0
  32. data/meta/homepage +1 -0
  33. data/meta/license +1 -0
  34. data/meta/repository +1 -0
  35. data/meta/summary +1 -0
  36. data/spec/commandline/autousage.rd +56 -0
  37. data/spec/commandline/bracket.rd +64 -0
  38. data/spec/commandline/completion.rd +38 -0
  39. data/spec/commandline/define.rd +44 -0
  40. data/spec/commandline/method.rd +60 -0
  41. data/spec/commandline/parse.rd +72 -0
  42. data/spec/commandline/scenario.rd +81 -0
  43. data/spec/commandline/subclass.rd +54 -0
  44. data/spec/string/unit.rd +58 -0
  45. data/spec/usage/define.rd +44 -0
  46. data/spec/usage/parse.rd +47 -0
  47. metadata +65 -196
  48. data/HISTORY +0 -11
  49. data/METADATA +0 -18
  50. data/NEWS +0 -10
  51. data/admin/config/reap.yaml +0 -30
  52. data/admin/depot/commandline.rb +0 -219
  53. data/admin/depot/multicommand.rb +0 -403
  54. data/admin/depot/test_multicommand.rb +0 -40
  55. data/admin/log/notes.xml +0 -28
  56. data/admin/log/stats.html +0 -25
  57. data/admin/log/syntax.log +0 -0
  58. data/admin/log/testunit.log +0 -16
  59. data/admin/pack/clio-0.0.1.gem +0 -0
  60. data/admin/share/reap/example.rb +0 -7
  61. data/admin/temps/lib/clio/about.rb.erb +0 -4
  62. data/lib/clio/command.rb +0 -296
  63. data/lib/clio/option.rb +0 -36
  64. data/lib/clio/runmode.rb +0 -126
  65. data/test/test_command.rb +0 -42
  66. data/test/test_commandline.rb +0 -83
  67. data/vendor/Console/Console.cpp +0 -1203
  68. data/vendor/Console/Console.rdoc +0 -690
  69. data/vendor/Console/Console_ANSI.rdoc +0 -302
  70. data/vendor/Console/HISTORY.txt +0 -7
  71. data/vendor/Console/INSTALL.txt +0 -18
  72. data/vendor/Console/Makefile +0 -162
  73. data/vendor/Console/README.txt +0 -26
  74. data/vendor/Console/doc/classes/Win32.html +0 -115
  75. data/vendor/Console/doc/classes/Win32/Console.html +0 -650
  76. data/vendor/Console/doc/classes/Win32/Console.src/M000001.html +0 -31
  77. data/vendor/Console/doc/classes/Win32/Console.src/M000002.html +0 -23
  78. data/vendor/Console/doc/classes/Win32/Console.src/M000003.html +0 -23
  79. data/vendor/Console/doc/classes/Win32/Console.src/M000004.html +0 -27
  80. data/vendor/Console/doc/classes/Win32/Console.src/M000005.html +0 -23
  81. data/vendor/Console/doc/classes/Win32/Console.src/M000006.html +0 -28
  82. data/vendor/Console/doc/classes/Win32/Console.src/M000007.html +0 -23
  83. data/vendor/Console/doc/classes/Win32/Console.src/M000008.html +0 -24
  84. data/vendor/Console/doc/classes/Win32/Console.src/M000009.html +0 -44
  85. data/vendor/Console/doc/classes/Win32/Console.src/M000010.html +0 -23
  86. data/vendor/Console/doc/classes/Win32/Console.src/M000011.html +0 -33
  87. data/vendor/Console/doc/classes/Win32/Console.src/M000012.html +0 -26
  88. data/vendor/Console/doc/classes/Win32/Console.src/M000013.html +0 -27
  89. data/vendor/Console/doc/classes/Win32/Console.src/M000014.html +0 -28
  90. data/vendor/Console/doc/classes/Win32/Console.src/M000015.html +0 -23
  91. data/vendor/Console/doc/classes/Win32/Console.src/M000016.html +0 -23
  92. data/vendor/Console/doc/classes/Win32/Console.src/M000017.html +0 -23
  93. data/vendor/Console/doc/classes/Win32/Console.src/M000018.html +0 -29
  94. data/vendor/Console/doc/classes/Win32/Console.src/M000019.html +0 -23
  95. data/vendor/Console/doc/classes/Win32/Console.src/M000020.html +0 -23
  96. data/vendor/Console/doc/classes/Win32/Console.src/M000021.html +0 -28
  97. data/vendor/Console/doc/classes/Win32/Console.src/M000022.html +0 -23
  98. data/vendor/Console/doc/classes/Win32/Console.src/M000023.html +0 -28
  99. data/vendor/Console/doc/classes/Win32/Console.src/M000024.html +0 -35
  100. data/vendor/Console/doc/classes/Win32/Console.src/M000025.html +0 -28
  101. data/vendor/Console/doc/classes/Win32/Console.src/M000026.html +0 -28
  102. data/vendor/Console/doc/classes/Win32/Console.src/M000027.html +0 -28
  103. data/vendor/Console/doc/classes/Win32/Console.src/M000028.html +0 -31
  104. data/vendor/Console/doc/classes/Win32/Console.src/M000029.html +0 -23
  105. data/vendor/Console/doc/classes/Win32/Console.src/M000030.html +0 -23
  106. data/vendor/Console/doc/classes/Win32/Console.src/M000031.html +0 -23
  107. data/vendor/Console/doc/classes/Win32/Console.src/M000032.html +0 -27
  108. data/vendor/Console/doc/classes/Win32/Console.src/M000033.html +0 -27
  109. data/vendor/Console/doc/classes/Win32/Console.src/M000034.html +0 -25
  110. data/vendor/Console/doc/classes/Win32/Console/ANSI.html +0 -103
  111. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.html +0 -220
  112. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000035.html +0 -32
  113. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000036.html +0 -205
  114. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000037.html +0 -40
  115. data/vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000038.html +0 -25
  116. data/vendor/Console/doc/classes/Win32/Console/API.html +0 -758
  117. data/vendor/Console/doc/classes/Win32/Console/API.src/M000039.html +0 -27
  118. data/vendor/Console/doc/classes/Win32/Console/API.src/M000040.html +0 -27
  119. data/vendor/Console/doc/classes/Win32/Console/API.src/M000041.html +0 -27
  120. data/vendor/Console/doc/classes/Win32/Console/API.src/M000042.html +0 -32
  121. data/vendor/Console/doc/classes/Win32/Console/API.src/M000043.html +0 -32
  122. data/vendor/Console/doc/classes/Win32/Console/API.src/M000044.html +0 -28
  123. data/vendor/Console/doc/classes/Win32/Console/API.src/M000045.html +0 -26
  124. data/vendor/Console/doc/classes/Win32/Console/API.src/M000046.html +0 -26
  125. data/vendor/Console/doc/classes/Win32/Console/API.src/M000047.html +0 -27
  126. data/vendor/Console/doc/classes/Win32/Console/API.src/M000048.html +0 -30
  127. data/vendor/Console/doc/classes/Win32/Console/API.src/M000049.html +0 -29
  128. data/vendor/Console/doc/classes/Win32/Console/API.src/M000050.html +0 -27
  129. data/vendor/Console/doc/classes/Win32/Console/API.src/M000051.html +0 -28
  130. data/vendor/Console/doc/classes/Win32/Console/API.src/M000052.html +0 -30
  131. data/vendor/Console/doc/classes/Win32/Console/API.src/M000053.html +0 -27
  132. data/vendor/Console/doc/classes/Win32/Console/API.src/M000054.html +0 -29
  133. data/vendor/Console/doc/classes/Win32/Console/API.src/M000055.html +0 -29
  134. data/vendor/Console/doc/classes/Win32/Console/API.src/M000056.html +0 -28
  135. data/vendor/Console/doc/classes/Win32/Console/API.src/M000057.html +0 -27
  136. data/vendor/Console/doc/classes/Win32/Console/API.src/M000058.html +0 -47
  137. data/vendor/Console/doc/classes/Win32/Console/API.src/M000059.html +0 -32
  138. data/vendor/Console/doc/classes/Win32/Console/API.src/M000060.html +0 -47
  139. data/vendor/Console/doc/classes/Win32/Console/API.src/M000061.html +0 -34
  140. data/vendor/Console/doc/classes/Win32/Console/API.src/M000062.html +0 -32
  141. data/vendor/Console/doc/classes/Win32/Console/API.src/M000063.html +0 -32
  142. data/vendor/Console/doc/classes/Win32/Console/API.src/M000064.html +0 -35
  143. data/vendor/Console/doc/classes/Win32/Console/API.src/M000065.html +0 -26
  144. data/vendor/Console/doc/classes/Win32/Console/API.src/M000066.html +0 -27
  145. data/vendor/Console/doc/classes/Win32/Console/API.src/M000067.html +0 -29
  146. data/vendor/Console/doc/classes/Win32/Console/API.src/M000068.html +0 -27
  147. data/vendor/Console/doc/classes/Win32/Console/API.src/M000069.html +0 -27
  148. data/vendor/Console/doc/classes/Win32/Console/API.src/M000070.html +0 -28
  149. data/vendor/Console/doc/classes/Win32/Console/API.src/M000071.html +0 -27
  150. data/vendor/Console/doc/classes/Win32/Console/API.src/M000072.html +0 -26
  151. data/vendor/Console/doc/classes/Win32/Console/API.src/M000073.html +0 -27
  152. data/vendor/Console/doc/classes/Win32/Console/API.src/M000074.html +0 -31
  153. data/vendor/Console/doc/classes/Win32/Console/API.src/M000075.html +0 -27
  154. data/vendor/Console/doc/classes/Win32/Console/API.src/M000076.html +0 -32
  155. data/vendor/Console/doc/classes/Win32/Console/API.src/M000077.html +0 -27
  156. data/vendor/Console/doc/classes/Win32/Console/API.src/M000078.html +0 -32
  157. data/vendor/Console/doc/classes/Win32/Console/API.src/M000079.html +0 -32
  158. data/vendor/Console/doc/classes/Win32/Console/API.src/M000080.html +0 -32
  159. data/vendor/Console/doc/classes/Win32/Console/Constants.html +0 -360
  160. data/vendor/Console/doc/created.rid +0 -1
  161. data/vendor/Console/doc/files/Console_ANSI_rdoc.html +0 -407
  162. data/vendor/Console/doc/files/Console_cpp.html +0 -104
  163. data/vendor/Console/doc/files/Console_rdoc.html +0 -964
  164. data/vendor/Console/doc/files/lib/Win32/Console/ANSI_rb.html +0 -123
  165. data/vendor/Console/doc/files/lib/Win32/Console_rb.html +0 -297
  166. data/vendor/Console/doc/fr_class_index.html +0 -32
  167. data/vendor/Console/doc/fr_file_index.html +0 -31
  168. data/vendor/Console/doc/fr_method_index.html +0 -106
  169. data/vendor/Console/doc/index.html +0 -24
  170. data/vendor/Console/doc/rdoc-style.css +0 -172
  171. data/vendor/Console/extconf.rb +0 -18
  172. data/vendor/Console/lib/Term/ansicolor.rb +0 -76
  173. data/vendor/Console/lib/Win32/Console.rb +0 -970
  174. data/vendor/Console/lib/Win32/Console/ANSI.rb +0 -305
  175. data/vendor/Console/test/test_cursor.rb +0 -9
  176. data/vendor/Console/test/test_mouse.rb +0 -6
  177. data/vendor/Console/test/test_readinput.rb +0 -62
  178. data/vendor/Console/test/test_readoutput.rb +0 -52
  179. data/vendor/Console/test/test_sendevent.rb +0 -17
  180. data/vendor/Console/test/test_title.rb +0 -14
  181. data/vendor/Console/test/test_write.rb +0 -36
data/CHANGES ADDED
@@ -0,0 +1,66 @@
1
+ == 0.2.0 / 2008-11-15
2
+
3
+ * 1 Major Enhancements
4
+
5
+ * commandline now has a full parser (#251ff8fb0d6e56dd6e90d6e859e840717af004e4)
6
+
7
+ * 46 Other Enhancements
8
+
9
+ * capitialized main files (#1ac75f6de90bab8a696e657b4b33f936c969bbe2)
10
+ * moved multicommand prototype to depot (#efe1d718e191394fa73064e4527a113374c55931)
11
+ * update metadata (#e852dfdcade93371694e38fcb88efe5840d22996)
12
+ * moved metadata to meta directory (#d24ecee1c5cf94d83f616cdc4d5c3273b7ca4490)
13
+ * general improvements (#3fbb584fcdb5650d403f6973410dafb249868c19)
14
+ * organized depot better (#a46855315ada3da50b11a44364305beb6bd3e4a5)
15
+ * added layouts (#a9514307f3838359706fcddb25ce1633fe63a816)
16
+ * added VERSION stamp file (#a60ccb2bf9943dce54d5e416ca3526fe55ddf3b5)
17
+ * moved admin/config to .config (#ac4d50546655d584a843d2e43d45ff2b4c652373)
18
+ * removed share directory (#4d2576a545a03c4478a700c245c45949fb958ec2)
19
+ * moved .roll to .config/roll.ini (#4634630c7a55dab317b8a0168397f05d68787333)
20
+ * completed reorganization (#5c979675a4a3da2af17561d5067da1a31ed1e681)
21
+ * added demo (#93aedb968bc48d5b879cc80a4725ca3d0864bf57)
22
+ * added buffer.rb (likely to be renamed in future) (#2f50a4e9244354ec8d31e30c82edd33ae858edf1)
23
+ * added depot directory (#aaa646fc0a6fd67c9a5c1f67aee1b553b95ab2ff)
24
+ * moved vender Console lib to work (#453c6b781e6202e151da202cda2fc9bc717a0256)
25
+ * commandline.rb overhaul (#e4b31fa76beafb9c4cfeb959a1bf97f061ef5d39)
26
+ * spec/ added with spec for commandline.rb (#0939ce66cd67ecb34bbc994952f56e1b1826a26a)
27
+ * moved temps to gen (#4ed8f849ba7e538b6f35cc02fafeb1baf3419bb6)
28
+ * new parse class (#d06a0b5b729a381fba7ff97865966b2b75a4d75b)
29
+ * defunct some parse files (#31d8a0a6dc2803135ffbbbcface8c4e1a6d418af)
30
+ * added demo for commandline (#3b1db619f47bac50716e41163e064ef50d8d788a)
31
+ * major work on commandline (#896be8f157fad51fae57e0eb0c516e6c92ecc470)
32
+ * major work on commandline (#68d48bfc59786181c45ab60d0f5d45a38b526e2e)
33
+ * copy of old facets command.rb in work for referece (#be9634e881306733210522697e38ea61e5a9b0f0)
34
+ * added tab_completion to commandline (#29d4166a34f953856341bbb5136c92333d3880c5)
35
+ * merging command and commandline (#1cb5369faa949f3a5eea46fb377a6169c3cb66b2)
36
+ * update specs (#6ac31050221e9ee39226720e6b494383bf756b66)
37
+ * moved spec/commandline to spec/command (#777e249dd3253a9bc2549483b923b5cc2b0c16f1)
38
+ * reorganized work directory (#b933c6897847d1c5a16cdbe2b6be03e6dfa8a503)
39
+ * rid library of old command libs (#d8d026c9d5d045b1bb6dffa68a4f4f1bcbf59bdf)
40
+ * new command.rb and support file updates (#6ecce2ab874d978be6442b9256492e6f16f282ea)
41
+ * renamed spec files (command -> commandline) (#d2d7e1309136cba6c50a5b1c3b9953f3950d0341)
42
+ * renamed command to commandline (#0e5c6448261160e0d93f0ff7e14e0b95fcf514cb)
43
+ * added some scrap material (#c53f17dcca865bacf6493b2b9bee24e7b2fdb459)
44
+ * added website (#336dd451eb6a3cd7fea1f066c7ac6ab98a73fa53)
45
+ * upped version to 0.0.3 (#ec6b29f90257adfb48098e715ec051d80cbeb5cc)
46
+ * moved demos to work space, they are to become specs (#5de9a428e404241ab1de75ee554bc391a72e0551)
47
+ * overall improvements to system (#f7315be5dbfa21bb2a9a9c9a43844c0d2d313184)
48
+ * fixed spec for autousage (#75221bec26ed965dac3ff2f15a6e8d2dc8760f4c)
49
+ * changed extensions of specs to .rd (#855f330ac1f0eb4eab54442f40357010c065c20c)
50
+ * fixed usage duplication (#eee7a8872fd8863d6fd37494c7e127d1397e17fc)
51
+ * copied needed facets methods (#2f649c515407eadd4c32076d4bb4360d765da8e4)
52
+ * clio/string.rb, fixed require (#4a519dd76be6e66454424edbe9eb790c786fc582)
53
+ * all specs now pass (#4b90a0b08a6a97ab29453b647ef969a7384f2d5d)
54
+ * avoid class with Clio::String and use ::String where needed (#471a0b1480207324ecf17ffe2943dac29fedba7e)
55
+
56
+
57
+ == 0.0.1 / 2008-08-29
58
+
59
+ * 1 Major Enhancements
60
+
61
+ * Started repository (#90e5f60cf2f6838afd35d47fed785c3ed205b0cc)
62
+
63
+ * 1 Other Enhancements
64
+
65
+ * Updated reap.yaml for BasicStats service. (#95d7c8c84e03cf9da1ecdd4fe8b34e3ff0ba396b)
66
+
data/MANIFEST CHANGED
@@ -1,181 +1,60 @@
1
- vendor
2
- vendor/Console
3
- vendor/Console/doc
4
- vendor/Console/doc/fr_file_index.html
5
- vendor/Console/doc/classes
6
- vendor/Console/doc/classes/Win32
7
- vendor/Console/doc/classes/Win32/Console
8
- vendor/Console/doc/classes/Win32/Console/ANSI.html
9
- vendor/Console/doc/classes/Win32/Console/Constants.html
10
- vendor/Console/doc/classes/Win32/Console/API.html
11
- vendor/Console/doc/classes/Win32/Console/ANSI
12
- vendor/Console/doc/classes/Win32/Console/ANSI/IO.src
13
- vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000037.html
14
- vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000035.html
15
- vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000036.html
16
- vendor/Console/doc/classes/Win32/Console/ANSI/IO.src/M000038.html
17
- vendor/Console/doc/classes/Win32/Console/ANSI/IO.html
18
- vendor/Console/doc/classes/Win32/Console/API.src
19
- vendor/Console/doc/classes/Win32/Console/API.src/M000047.html
20
- vendor/Console/doc/classes/Win32/Console/API.src/M000052.html
21
- vendor/Console/doc/classes/Win32/Console/API.src/M000066.html
22
- vendor/Console/doc/classes/Win32/Console/API.src/M000069.html
23
- vendor/Console/doc/classes/Win32/Console/API.src/M000041.html
24
- vendor/Console/doc/classes/Win32/Console/API.src/M000073.html
25
- vendor/Console/doc/classes/Win32/Console/API.src/M000063.html
26
- vendor/Console/doc/classes/Win32/Console/API.src/M000076.html
27
- vendor/Console/doc/classes/Win32/Console/API.src/M000046.html
28
- vendor/Console/doc/classes/Win32/Console/API.src/M000050.html
29
- vendor/Console/doc/classes/Win32/Console/API.src/M000039.html
30
- vendor/Console/doc/classes/Win32/Console/API.src/M000080.html
31
- vendor/Console/doc/classes/Win32/Console/API.src/M000048.html
32
- vendor/Console/doc/classes/Win32/Console/API.src/M000071.html
33
- vendor/Console/doc/classes/Win32/Console/API.src/M000072.html
34
- vendor/Console/doc/classes/Win32/Console/API.src/M000062.html
35
- vendor/Console/doc/classes/Win32/Console/API.src/M000079.html
36
- vendor/Console/doc/classes/Win32/Console/API.src/M000078.html
37
- vendor/Console/doc/classes/Win32/Console/API.src/M000060.html
38
- vendor/Console/doc/classes/Win32/Console/API.src/M000057.html
39
- vendor/Console/doc/classes/Win32/Console/API.src/M000044.html
40
- vendor/Console/doc/classes/Win32/Console/API.src/M000058.html
41
- vendor/Console/doc/classes/Win32/Console/API.src/M000067.html
42
- vendor/Console/doc/classes/Win32/Console/API.src/M000053.html
43
- vendor/Console/doc/classes/Win32/Console/API.src/M000068.html
44
- vendor/Console/doc/classes/Win32/Console/API.src/M000055.html
45
- vendor/Console/doc/classes/Win32/Console/API.src/M000049.html
46
- vendor/Console/doc/classes/Win32/Console/API.src/M000065.html
47
- vendor/Console/doc/classes/Win32/Console/API.src/M000064.html
48
- vendor/Console/doc/classes/Win32/Console/API.src/M000045.html
49
- vendor/Console/doc/classes/Win32/Console/API.src/M000075.html
50
- vendor/Console/doc/classes/Win32/Console/API.src/M000070.html
51
- vendor/Console/doc/classes/Win32/Console/API.src/M000077.html
52
- vendor/Console/doc/classes/Win32/Console/API.src/M000059.html
53
- vendor/Console/doc/classes/Win32/Console/API.src/M000051.html
54
- vendor/Console/doc/classes/Win32/Console/API.src/M000040.html
55
- vendor/Console/doc/classes/Win32/Console/API.src/M000043.html
56
- vendor/Console/doc/classes/Win32/Console/API.src/M000056.html
57
- vendor/Console/doc/classes/Win32/Console/API.src/M000061.html
58
- vendor/Console/doc/classes/Win32/Console/API.src/M000042.html
59
- vendor/Console/doc/classes/Win32/Console/API.src/M000054.html
60
- vendor/Console/doc/classes/Win32/Console/API.src/M000074.html
61
- vendor/Console/doc/classes/Win32/Console.html
62
- vendor/Console/doc/classes/Win32/Console.src
63
- vendor/Console/doc/classes/Win32/Console.src/M000030.html
64
- vendor/Console/doc/classes/Win32/Console.src/M000031.html
65
- vendor/Console/doc/classes/Win32/Console.src/M000002.html
66
- vendor/Console/doc/classes/Win32/Console.src/M000014.html
67
- vendor/Console/doc/classes/Win32/Console.src/M000019.html
68
- vendor/Console/doc/classes/Win32/Console.src/M000017.html
69
- vendor/Console/doc/classes/Win32/Console.src/M000033.html
70
- vendor/Console/doc/classes/Win32/Console.src/M000028.html
71
- vendor/Console/doc/classes/Win32/Console.src/M000020.html
72
- vendor/Console/doc/classes/Win32/Console.src/M000009.html
73
- vendor/Console/doc/classes/Win32/Console.src/M000015.html
74
- vendor/Console/doc/classes/Win32/Console.src/M000029.html
75
- vendor/Console/doc/classes/Win32/Console.src/M000005.html
76
- vendor/Console/doc/classes/Win32/Console.src/M000001.html
77
- vendor/Console/doc/classes/Win32/Console.src/M000003.html
78
- vendor/Console/doc/classes/Win32/Console.src/M000021.html
79
- vendor/Console/doc/classes/Win32/Console.src/M000011.html
80
- vendor/Console/doc/classes/Win32/Console.src/M000006.html
81
- vendor/Console/doc/classes/Win32/Console.src/M000013.html
82
- vendor/Console/doc/classes/Win32/Console.src/M000010.html
83
- vendor/Console/doc/classes/Win32/Console.src/M000012.html
84
- vendor/Console/doc/classes/Win32/Console.src/M000032.html
85
- vendor/Console/doc/classes/Win32/Console.src/M000034.html
86
- vendor/Console/doc/classes/Win32/Console.src/M000025.html
87
- vendor/Console/doc/classes/Win32/Console.src/M000008.html
88
- vendor/Console/doc/classes/Win32/Console.src/M000022.html
89
- vendor/Console/doc/classes/Win32/Console.src/M000004.html
90
- vendor/Console/doc/classes/Win32/Console.src/M000027.html
91
- vendor/Console/doc/classes/Win32/Console.src/M000026.html
92
- vendor/Console/doc/classes/Win32/Console.src/M000007.html
93
- vendor/Console/doc/classes/Win32/Console.src/M000018.html
94
- vendor/Console/doc/classes/Win32/Console.src/M000023.html
95
- vendor/Console/doc/classes/Win32/Console.src/M000024.html
96
- vendor/Console/doc/classes/Win32/Console.src/M000016.html
97
- vendor/Console/doc/classes/Win32.html
98
- vendor/Console/doc/rdoc-style.css
99
- vendor/Console/doc/files
100
- vendor/Console/doc/files/Console_rdoc.html
101
- vendor/Console/doc/files/lib
102
- vendor/Console/doc/files/lib/Win32
103
- vendor/Console/doc/files/lib/Win32/Console
104
- vendor/Console/doc/files/lib/Win32/Console/ANSI_rb.html
105
- vendor/Console/doc/files/lib/Win32/Console_rb.html
106
- vendor/Console/doc/files/Console_ANSI_rdoc.html
107
- vendor/Console/doc/files/Console_cpp.html
108
- vendor/Console/doc/fr_class_index.html
109
- vendor/Console/doc/index.html
110
- vendor/Console/doc/created.rid
111
- vendor/Console/doc/fr_method_index.html
112
- vendor/Console/test
113
- vendor/Console/test/test_readinput.rb
114
- vendor/Console/test/test_mouse.rb
115
- vendor/Console/test/test_write.rb
116
- vendor/Console/test/test_sendevent.rb
117
- vendor/Console/test/test_cursor.rb
118
- vendor/Console/test/test_readoutput.rb
119
- vendor/Console/test/test_title.rb
120
- vendor/Console/INSTALL.txt
121
- vendor/Console/README.txt
122
- vendor/Console/Console_ANSI.rdoc
123
- vendor/Console/Console.cpp
124
- vendor/Console/HISTORY.txt
125
- vendor/Console/Makefile
126
- vendor/Console/lib
127
- vendor/Console/lib/Win32
128
- vendor/Console/lib/Win32/Console
129
- vendor/Console/lib/Win32/Console/ANSI.rb
130
- vendor/Console/lib/Win32/Console.rb
131
- vendor/Console/lib/Term
132
- vendor/Console/lib/Term/ansicolor.rb
133
- vendor/Console/extconf.rb
134
- vendor/Console/Console.rdoc
135
- doc
136
- doc/book
137
- test
138
- test/test_command.rb
139
- test/test_commandline.rb
1
+ spec
2
+ spec/usage
3
+ spec/usage/define.rd
4
+ spec/usage/parse.rd
5
+ spec/commandline
6
+ spec/commandline/bracket.rd
7
+ spec/commandline/subclass.rd
8
+ spec/commandline/completion.rd
9
+ spec/commandline/define.rd
10
+ spec/commandline/autousage.rd
11
+ spec/commandline/method.rd
12
+ spec/commandline/parse.rd
13
+ spec/commandline/scenario.rd
14
+ spec/string
15
+ spec/string/unit.rd
16
+ spec/commandable
17
+ CHANGES
18
+ RELEASE
140
19
  README
141
- HISTORY
142
- METADATA
20
+ meta
21
+ meta/created
22
+ meta/repository
23
+ meta/homepage
24
+ meta/summary
25
+ meta/abstract
26
+ meta/license
27
+ meta/authors
143
28
  lib
144
29
  lib/clio
30
+ lib/clio/facets
31
+ lib/clio/facets/kernel.rb
32
+ lib/clio/facets/string.rb
33
+ lib/clio/usage
34
+ lib/clio/usage/main.rb
35
+ lib/clio/usage/signature.rb
36
+ lib/clio/usage/command.rb
37
+ lib/clio/usage/parser.rb
38
+ lib/clio/usage/argument.rb
39
+ lib/clio/usage/interface.rb
40
+ lib/clio/usage/option.rb
145
41
  lib/clio/commandline.rb
146
- lib/clio/command.rb
147
- lib/clio/runmode.rb
148
42
  lib/clio/ansicode.rb
149
43
  lib/clio/commandable.rb
44
+ lib/clio/layout
45
+ lib/clio/layout/list.rb
46
+ lib/clio/layout/flow.rb
47
+ lib/clio/layout/stack.rb
48
+ lib/clio/layout/split.rb
49
+ lib/clio/layout/table.rb
50
+ lib/clio/layout/line.rb
150
51
  lib/clio/consoleutils.rb
52
+ lib/clio/buffer.rb
151
53
  lib/clio/errors.rb
152
- lib/clio/option.rb
54
+ lib/clio/usage.rb
55
+ lib/clio/layout.rb
153
56
  lib/clio/progressbar.rb
154
57
  lib/clio/string.rb
155
- data
156
- NEWS
58
+ VERSION
157
59
  bin
158
- admin
159
- admin/web
160
- admin/temps
161
- admin/temps/lib
162
- admin/temps/lib/clio
163
- admin/temps/lib/clio/about.rb.erb
164
- admin/config
165
- admin/config/reap.yaml
166
- admin/depot
167
- admin/depot/commandline.rb
168
- admin/depot/test_multicommand.rb
169
- admin/depot/multicommand.rb
170
- admin/share
171
- admin/share/sow
172
- admin/share/reap
173
- admin/share/reap/example.rb
174
- admin/pack
175
- admin/pack/clio-0.0.1.gem
176
- admin/log
177
- admin/log/notes.xml
178
- admin/log/stats.html
179
- admin/log/syntax.log
180
- admin/log/testunit.log
181
60
  COPYING
data/README CHANGED
@@ -6,45 +6,41 @@
6
6
  == INTRODUCTION
7
7
 
8
8
  Clio is a great way to build commandline tools.
9
- Clio provides a variety of ways to handle command
10
- options parsing, to suit almost any perfered
11
- style, and provides a very rich and and easy to
12
- use library for generating console output.
9
+ It provides an advanced options parser with
10
+ a variety of notations suited to almost any
11
+ perfered style, and provides a very rich and
12
+ and easy to use library for generating console
13
+ output.
13
14
 
14
15
 
15
16
  == RELEASE NOTES
16
17
 
17
- Please see NEWS file.
18
-
19
-
20
- == RECENT CHANGES
21
-
22
- Please see CHANGES file.
18
+ Please see the RELEASE file.
23
19
 
24
20
 
25
21
  == INSTALL
26
22
 
27
- To install with RubyGems simply open a console and type:
23
+ To install with RubyGems simply open a shell console and type:
28
24
 
29
- $ gem install clio
25
+ $ sudo gem install clio
30
26
 
31
- Direct installation requires Ruby Setup.rb package.
32
- See http://setup.rubyforge.rb. Then download the
27
+ Direct installation requires the Ruby Setup package.
28
+ See http://setup.rubyforge.org. Then download the
33
29
  Clio .tgz package and type:
34
30
 
35
31
  $ tar -xvzf clio-x.y.z.tgz
36
32
  $ cd clio-x.y.z
37
- $ sudo setup.rb
33
+ $ sudo setup.rb all
38
34
 
39
35
 
40
36
  == USAGE
41
37
 
42
- For the moment, please see the RDoc API.
38
+ Please see the RDoc API.
43
39
 
44
40
 
45
41
  == LICENSE
46
42
 
47
- Copyright (c) 2008 FIX
43
+ Copyright (c) 2008
48
44
 
49
45
  This program is ditributed unser the terms of the GPLv3 license.
50
46
 
data/RELEASE ADDED
@@ -0,0 +1,8 @@
1
+ This is the initial release of Clio. While useable,
2
+ it is still very much APLHA code. The API is still
3
+ in flux and needs a lot more testing before I'd
4
+ put it to gereral use.
5
+
6
+ ### 0.0.1 // 2008-08-29
7
+
8
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ clio 0.2.0 beta (2008-11-15)
@@ -0,0 +1,93 @@
1
+ require 'clio/string'
2
+ require 'clio/layout/split'
3
+ require 'clio/layout/table'
4
+ require 'clio/layout/line'
5
+ require 'clio/layout/list'
6
+ require 'clio/layout/stack'
7
+ require 'clio/layout/flow'
8
+
9
+ module Clio
10
+
11
+ def self.buffer
12
+ Buffer.new
13
+ end
14
+
15
+ ###
16
+ class Buffer
17
+
18
+ def initialize()
19
+ @buffer = []
20
+ end
21
+
22
+ def to_s
23
+ @buffer.collect{|e| e.to_s}.join('')
24
+ end
25
+
26
+ def newline
27
+ @buffer << "\n"
28
+ end
29
+ alias_method :nl, :newline
30
+
31
+ def string(str)
32
+ @buffer << String.new(str)
33
+ end
34
+
35
+ def line(fill='-')
36
+ @buffer << Line.new(fill)
37
+ end
38
+
39
+ def split(left, rite)
40
+ @buffer << Split.new(left, rite)
41
+ end
42
+
43
+ def table(*rows_of_cells)
44
+ @buffer << Table.new(*rows_of_cells)
45
+ end
46
+
47
+ def list(*items)
48
+ @buffer << List.new(*items)
49
+ end
50
+
51
+ #def columns(text, number=2)
52
+ #end
53
+
54
+ def stack(&block)
55
+
56
+ end
57
+
58
+ def flow
59
+ end
60
+
61
+ def print
62
+ Kernel.print(to_s)
63
+ @buffer = []
64
+ end
65
+
66
+ ###
67
+ def method_missing(s, *a, &b)
68
+ @buffer.last.send(s, *a, &b)
69
+ end
70
+
71
+ end
72
+
73
+ end
74
+
75
+
76
+
77
+
78
+
79
+ if $0 == __FILE__
80
+
81
+ buf = Clio::Buffer.new
82
+ buf.string("Hello").color(:red)
83
+ buf.string("World").color(:green)
84
+ buf.justify.print
85
+
86
+
87
+ h = Clio.string("Hello").color(:red)
88
+ w = Clio.string("World").color(:green)
89
+
90
+ (h | w).print
91
+
92
+ end
93
+