-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
391 lines (367 loc) · 15.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Ruby for the CLI</title>
<link href='css/cli.css' rel='stylesheet'>
<link href='css/solarized_light.css' rel='stylesheet'>
<meta name="description" content="command-line conventions, the Unix way, Ruby tools and libraries" />
</head>
<body>
<div id="impress">
<div id="start" class="step" data-scale="100" >
</div>
<div id="make-apps" class="step layered" >
<article>
<img class="faded" src="images/ruby-logo.png" alt="ruby">
<h1>Make awesome command-line apps</h1>
<h2 class="faded inset">with Ruby</h2>
</article>
</div>
<div id="with-ruby" class="step layered" data-x='-20' >
<article>
<img src="images/ruby-logo.png" alt="ruby">
<h1 class="faded inset">Make awesome command-line apps</h1>
<h2>with Ruby</h2>
</article>
</div>
<div id="olivier-melcher" class="step" data-x="500" data-y='1000' >
<article>
<h1>Olivier<br />Melcher</h1>
</article>
</div>
<div id="twitter" class="step" data-x="520" data-y='1000' >
<article>
<h1><a href="http://twitter.com/oliv_oil/">@oliv_oil</a></h1>
</article>
</div>
<div id="website" class="step" data-x="540" data-y='1000' >
<article>
<h1><a href="http://olivoil.github.com/cli">olivoil.github.com/cli</a></h1>
</article>
</div>
<div id="credits" class="step layered" data-x="520" data-rotate-y='180' data-y='1000' >
<article>
<a class="amazon" href="http://www.amazon.com/gp/product/1934356913/ref=as_li_ss_il?ie=UTF8&tag=omelcher-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1934356913">
<img src="images/book.jpg" alt="Build Awesome Command Line Applications with Ruby by David Copeland">
</a>
<img src="http://www.assoc-amazon.com/e/ir?t=omelcher-20&l=as2&o=1&a=1934356913" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
<p class="title">
<a href="http://www.naildrivin5.com">David Bryant Copeland</a> (<a href="http://twitter.com/davetron5000">@davetron5000</a>)
</p>
<p>
David wrote <a class="amazon" href="http://www.amazon.com/gp/product/1934356913/ref=as_li_ss_il?ie=UTF8&tag=omelcher-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1934356913">the book</a> on command-line applications with Ruby, and a few useful gems, like <a href="http://github.com/davetron5000.com/gli">GLI</a>, and <a href="http://github.com/davetron5000.com/methadone">Methadone</a>.
</p>
</article>
</div>
<div id="why" class="step objection" data-x="0" data-y='-1000'>
<article>
<h1 class="inset">* Why?</h1>
</article>
</div>
<div id="talk-motivation" class="step counter" data-x="0" data-y='-1000' data-rotate-x='-45' data-rotate-y='-45' >
<article>
<h4 class="inset ruby">Learn Ruby</h4>
<pre><code class="gherkin_en">
As a Ruby programmer
I want to find places where I could use more Ruby
So that I will increase my knowledge of the language
</code></pre>
<!-- <br /> -->
<h4 class="inset">The Unix way</h4>
<a href="http://www.faqs.org/docs/artu/ch01s06.html">Expect the output of every program to become the input to another, as yet unknown, program.</a>
</article>
</div>
<div id="what" class="step objection" data-x="0" data-y='-1000' data-rotate-x='-90' data-rotate-y='-90' >
<article>
<h1 class="inset">* What?</h1>
</article>
</div>
<div id="core" class="step counter" data-x="0" data-y='-1000' data-rotate-x='-135' data-rotate-y='-135' >
<article>
<h4 class="inset">Ruby Core</h4>
<table>
<tr>
<td><a href="http://ruby-doc.org/core-1.9.3/IO.html">IO</a>, <a href="http://ruby-doc.org/core-1.9.3/File.html">File</a>, $stdin, $stdout, $stderr, ARGV</td>
<td>Standard input and output</td>
</tr>
<tr>
<td><a href="http://ruby-doc.org/core-1.9.3/ARGF.html">ARGF</a></td>
<td>Process filename arguments as a stream</td>
</tr>
<tr>
<td><a href="http://ruby-doc.org/core-1.9.3/Process.html">Process</a>, <a href="http://ruby-doc.org/core-1.9.3/Signal.html">Signal</a></td>
<td>Process manipulation and messaging</td>
</tr>
<tr>
<td><a href="http://ruby.runpaint.org/globals">$?, $0, $_, DATA</a></td>
<td>Other global variables available to any Ruby program</td>
</tr>
</table>
</article>
</div>
<div id="stdlib" class="step counter" data-x="0" data-y='-1000' data-rotate-x='-180' data-rotate-y='-180' >
<article>
<h4 class="inset">Standard Libraries</h4>
<table>
<tr>
<td><a href="http://www.ruby-doc.org/stdlib-1.9.3/libdoc/optparse/rdoc/OptionParser.html">OptionParser</a></td>
<td>Parse command-line options</td>
</tr>
<tr>
<td><a href="http://www.ruby-doc.org/stdlib-1.9.3/libdoc/stringio/rdoc/StringIO.html">StringIO</a></td>
<td>Wrap Strings with an IO-like interface</td>
</tr>
<tr>
<td><a href="http://www.ruby-doc.org/stdlib-1.9.3/libdoc/open3/rdoc/Open3.html">Open3</a></td>
<td>Capture stdout, stderr, and status from commands</td>
</tr>
<tr>
<td><a href="https://github.com/ruby/ruby/blob/trunk/lib/English.rb">English</a></td>
<td>Reference global variables using less cryptic names</td>
</tr>
<tr>
<td><a href="http://www.ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html">Shellwords</a></td>
<td>Manipulate strings with the same parsing rules as the shell</td>
</tr>
</table>
</article>
</div>
<div id="gems" class="step counter" data-x="0" data-y='-1000' data-rotate-x='-225' data-rotate-y='-225' >
<article>
<h4 class="inset">Gems</h4>
<table>
<tr>
<td>
<ul>
<li><a href="#">Slop</a></li>
<li><a href="#">GLI</a></li>
<li><a href="#">Commander</a></li>
</ul>
</td>
<td>Parse global options, commands, options, etc.</td>
</tr>
<tr>
<td>
<ul>
<li><a href="#">Aruba</a></li>
</ul>
</td>
<td>Cucumber with cli-specific step definitions</td>
</tr>
<tr>
<td>
<ul>
<li><a href="https://github.com/rtomayko/ronn">Ronn</a></li>
</ul>
</td>
<td>Generate man pages from Markdown</td>
</tr>
<tr>
<td>
<ul>
<li><a href="#">Highline</a></li>
</ul>
</td>
<td>Interact with users on the command-line</td>
</tr>
<tr>
<td>
<ul>
<li><a href="#">Terminal table</a></li>
</ul>
</td>
<td>Format output with tables</td>
</tr>
<tr>
<td>
<ul>
<li><a href="#">Rainbow</a></li>
</ul>
</td>
<td>Format output with colors</td>
</tr>
</table>
</article>
</div>
<div id="whats-a-cli-app" class="step" data-x="3000" data-y='3000' >
<article>
<h1 class="inset">What's a <br />command-line app?</h1>
</article>
</div>
<div id="its-2-fold" class="step" data-x="4200" data-y='3000' data-rotate-x='90' >
<article>
<p>A command-line application is an <b>application</b> that uses the command-line as its <b>UI</b>.</p>
<p class="inset"> There are two kinds of apps:<br /> </p>
<ul>
<li>- a command utility (i.e. grep, cat...)</li>
<li>- a command suite (i.e. git, bundle...)</li>
</ul>
</article>
</div>
<div id="what-makes-it-awesome" class="step" data-x="5400" data-y='3000' data-rotate-x='180' >
<article>
<h1 class="inset">What's an <b>awesome</b><br />command-line app?</h1>
</article>
</div>
<div id="awesome-means" class="step layered" data-x="6800" data-y='3000' data-rotate-x='270' >
<article>
<p>An awesome command-line app:</p>
<nav>
<ol>
<li><a href="#first-class">is a 1<em class="superscript">st</em> class application</a></li>
<li class="faded"><a href="#helpful">is helpful</a></li>
<li class="faded"><a href="#play-well-with-others">plays well with others</a></li>
</ol>
</nav>
</article>
</div>
<div id="awesome-means" class="step layered" data-x="6800" data-y='3000' data-rotate-x='270' >
<article>
<p>An awesome command-line app:</p>
<nav>
<ol>
<li><a href="#first-class">is a 1<em class="superscript">st</em> class application</a></li>
<li><a href="#helpful">is helpful</a></li>
<li class="faded"><a href="#play-well-with-others">plays well with others</a></li>
</ol>
</nav>
</article>
</div>
<div id="awesome-means" class="step layered" data-x="6800" data-y='3000' data-rotate-x='270' >
<article>
<p>An awesome command-line app:</p>
<nav>
<ol>
<li><a href="#first-class">is a 1<em class="superscript">st</em> class application</a></li>
<li><a href="#helpful">is helpful</a></li>
<li><a href="#play-well-with-others">plays well with others</a></li>
</ol>
</nav>
</article>
</div>
<div id="first-class" class="step layered topnav" data-x="8000" data-y='3000' data-rotate-x='360' >
<article>
<nav class="top">
<ol>
<li><a href="#first-class">1<em class="superscript">st</em> class application</a></li>
<li class="faded"><a href="#helpful">helpful</a></li>
<li class="faded"><a href="#play-well-with-others">play well with others</a></li>
</ol>
</nav>
<ul>
<li>Think about the UI</li>
<li>Think about users: casual, advanced, admins</li>
<li>Test (<em>first</em>)</li>
<li>Implement with good design</li>
<li class="transparent repo">=> <a href="https://github.com/schacon/showoff">showoff (github.com/schacon/showoff)</a></li>
</ul>
</article>
</div>
<div id="first-class" class="step layered topnav" data-x="8000" data-y='3000' data-rotate-x='360' >
<article>
<nav class="top">
<ol>
<li><a href="#first-class">1<em class="superscript">st</em> class application</a></li>
<li class="faded"><a href="#helpful">helpful</a></li>
<li class="faded"><a href="#play-well-with-others">play well with others</a></li>
</ol>
</nav>
<ul>
<li>Think about the UI</li>
<li>Think about users: casual, advanced, admins</li>
<li>Test (<em>first</em>)</li>
<li>Implement with good design</li>
<li class="repo">=> <a href="https://github.com/schacon/showoff">showoff (github.com/schacon/showoff)</a></li>
</ul>
</article>
</div>
<div id="helpful" class="step layered topnav" data-x="8000" data-y='3000' data-rotate-x='360' >
<article>
<nav class="top">
<ol>
<li class="faded"><a href="#first-class">1<em class="superscript">st</em> class application</a></li>
<li><a href="#helpful">helpful</a></li>
<li class="faded"><a href="#play-well-with-others">play well with others</a></li>
</ol>
</nav>
<ul>
<li>Non-destructive defaults</li>
<li>Help command: -h, --help, help</li>
<li>Man page</li>
<li>Configurable defaults: rc files</li>
<li>Easy distribution and installation</li>
<li class="transparent repo">=> <a href="https://github.com/defunkt/gist">Gist (github.com/defunkt/gist)</a></li>
</ul>
</article>
</div>
<div id="helpful" class="step layered topnav" data-x="8000" data-y='3000' data-rotate-x='360' >
<article>
<nav class="top">
<ol>
<li class="faded"><a href="#first-class">1<em class="superscript">st</em> class application</a></li>
<li><a href="#helpful">helpful</a></li>
<li class="faded"><a href="#play-well-with-others">play well with others</a></li>
</ol>
</nav>
<ul>
<li>Non-destructive defaults</li>
<li>Help command: -h, --help, help</li>
<li>Man page</li>
<li>Configurable defaults: rc files</li>
<li>Easy distribution and installation</li>
<li class="repo">=> <a href="https://github.com/defunkt/gist">Gist (github.com/defunkt/gist)</a></li>
</ul>
</article>
</div>
<div id="play-well-with-others" class="step layered topnav" data-x="8000" data-y='3000' data-rotate-x='360' >
<article>
<nav class="top">
<ol>
<li class="faded"><a href="#first-class">1<em class="superscript">st</em> class application</a></li>
<li class="faded"><a href="#helpful">helpful</a></li>
<li><a href="#play-well-with-others">play well with others</a></li>
</ol>
</nav>
<div class="content">
<ul>
<li>Machine readable output: | grep | cut</li>
<li>Exit Codes</li>
<li>$stderr vs. $stdout</li>
<li class="transparent repo">=> <a href="https://github.com/defunkt/gist">Gist (github.com/defunkt/gist)</a></li>
</ul>
</div>
</article>
</div>
<div id="play-well-with-others" class="step layered topnav" data-x="8000" data-y='3000' data-rotate-x='360' >
<article>
<nav class="top">
<ol>
<li class="faded"><a href="#first-class">1<em class="superscript">st</em> class application</a></li>
<li class="faded"><a href="#helpful">helpful</a></li>
<li><a href="#play-well-with-others">play well with others</a></li>
</ol>
</nav>
<div class="content">
<ul>
<li>Machine readable output: | grep | cut</li>
<li>Exit Codes</li>
<li>$stderr vs. $stdout</li>
<li class="repo">=> <a href="https://github.com/defunkt/gist">Gist (github.com/defunkt/gist)</a></li>
</ul>
</div>
</article>
</div>
</div>
<script src="js/impress.js"></script>
<!-- <script src="js/highlight.pack.js"></script> -->
<script src="js/highlight.js"></script>
<script src="js/highlight.ruby.js"></script>
<script src="js/highlight.bash.js"></script>
<script src="js/highlight.gherkin_en.js"></script>
<script type="text/javascript">
hljs.tabReplace = ' '; // 2 spaces
hljs.initHighlightingOnLoad();
</script>
</body>
</html>