ayadn 1.8.2 → 2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/CHANGELOG.md +73 -52
  4. data/README.md +17 -3
  5. data/ayadn.gemspec +3 -4
  6. data/doc/01-index.md +6 -5
  7. data/doc/02-install.md +23 -1
  8. data/doc/03-first-steps.md +22 -28
  9. data/doc/04-options.md +1 -1
  10. data/doc/05-streams.md +29 -9
  11. data/doc/06-post.md +13 -5
  12. data/doc/07-actions.md +63 -1
  13. data/doc/08-listings.md +112 -4
  14. data/doc/09-accounts.md +17 -3
  15. data/doc/10-nicerank.md +5 -5
  16. data/doc/11-blacklist.md +8 -14
  17. data/doc/12-alias.md +1 -13
  18. data/doc/14-set.md +8 -110
  19. data/doc/15-nowplaying.md +16 -4
  20. data/doc/18-contact.md +14 -13
  21. data/doc/19-examples.md +2 -0
  22. data/lib/ayadn/action.rb +322 -183
  23. data/lib/ayadn/alias.rb +17 -45
  24. data/lib/ayadn/annotations.rb +1 -1
  25. data/lib/ayadn/api.rb +7 -8
  26. data/lib/ayadn/app.rb +99 -12
  27. data/lib/ayadn/authorize.rb +92 -57
  28. data/lib/ayadn/blacklist.rb +52 -62
  29. data/lib/ayadn/check.rb +81 -74
  30. data/lib/ayadn/cnx.rb +77 -26
  31. data/lib/ayadn/databases.rb +890 -105
  32. data/lib/ayadn/debug.rb +30 -89
  33. data/lib/ayadn/descriptions.rb +876 -329
  34. data/lib/ayadn/endpoints.rb +2 -2
  35. data/lib/ayadn/errors.rb +9 -9
  36. data/lib/ayadn/extend.rb +8 -1
  37. data/lib/ayadn/fileops.rb +10 -8
  38. data/lib/ayadn/mark.rb +79 -56
  39. data/lib/ayadn/migration.rb +427 -0
  40. data/lib/ayadn/nicerank.rb +74 -72
  41. data/lib/ayadn/nowplaying.rb +123 -60
  42. data/lib/ayadn/nowwatching.rb +26 -10
  43. data/lib/ayadn/pinboard.rb +12 -7
  44. data/lib/ayadn/post.rb +40 -37
  45. data/lib/ayadn/profile.rb +5 -2
  46. data/lib/ayadn/scroll.rb +20 -5
  47. data/lib/ayadn/search.rb +30 -22
  48. data/lib/ayadn/set.rb +146 -50
  49. data/lib/ayadn/settings.rb +66 -67
  50. data/lib/ayadn/status.rb +459 -234
  51. data/lib/ayadn/stream.rb +80 -46
  52. data/lib/ayadn/switch.rb +51 -47
  53. data/lib/ayadn/tvshow.rb +47 -15
  54. data/lib/ayadn/version.rb +1 -1
  55. data/lib/ayadn/view.rb +119 -60
  56. data/lib/ayadn/workers.rb +144 -92
  57. data/lib/ayadn.rb +7 -8
  58. data/spec/mock/ayadn/accounts.sqlite +0 -0
  59. data/spec/mock/ayadn.sqlite +0 -0
  60. data/spec/unit/annotations_spec.rb +12 -13
  61. data/spec/unit/api_spec.rb +3 -4
  62. data/spec/unit/blacklistworkers_spec.rb +18 -23
  63. data/spec/unit/databases_spec.rb +51 -36
  64. data/spec/unit/endpoints_spec.rb +5 -2
  65. data/spec/unit/extend_spec.rb +24 -0
  66. data/spec/unit/nicerank_spec.rb +13 -13
  67. data/spec/unit/post_spec.rb +47 -36
  68. data/spec/unit/set_spec.rb +67 -96
  69. data/spec/unit/view_spec.rb +12 -6
  70. data/spec/unit/workers_spec.rb +38 -12
  71. data/tags +1285 -0
  72. metadata +29 -39
  73. data/spec/mock/aliases.db +0 -0
  74. data/spec/mock/blacklist.db +0 -0
  75. data/spec/mock/bookmarks.db +0 -0
  76. data/spec/mock/channels.db +0 -0
  77. data/spec/mock/index.db +0 -0
  78. data/spec/mock/nicerank.db +0 -0
  79. data/spec/mock/pagination.db +0 -0
  80. data/spec/mock/users.db +0 -0
  81. data/spec/unit/status_spec.rb +0 -9
@@ -17,7 +17,7 @@ module Ayadn
17
17
  "Extract links from each object"
18
18
  end
19
19
  def self.options_force
20
- "Force retrieve posts if the user is muted/blocked"
20
+ "Force retrieve posts if the user is muted/blocked and ignores posts index"
21
21
  end
22
22
  def self.unified
23
23
  <<-USAGE
@@ -25,29 +25,43 @@ module Ayadn
25
25
 
26
26
  Basic usage:
27
27
 
28
- ayadn timeline
28
+ `ayadn timeline`
29
29
 
30
- ayadn -tl
30
+ `ayadn -tl`
31
+
32
+ Scroll the stream:
33
+
34
+ `ayadn -tl -s`
35
+
36
+ # -----
31
37
 
32
38
  Retrieves only 5 posts:
33
39
 
34
- ayadn -tl -c5
40
+ `ayadn -tl -c5`
35
41
 
36
42
  Shows index instead of post numbers:
37
43
 
38
- ayadn -tl -i
44
+ `ayadn -tl -i`
39
45
 
40
46
  Shows index and retrieves 30 posts:
41
47
 
42
- ayadn -tl -i -c30
48
+ `ayadn -tl -i -c30`
43
49
 
44
- Scroll the stream:
50
+ Show only new posts:
45
51
 
46
- ayadn -tl -s
52
+ `ayadn -tl -n`
47
53
 
48
- Show only new posts:
54
+ Force compact view:
55
+
56
+ `ayadn -tl -k`
57
+
58
+ Force display blocked/muted/blacklisted:
49
59
 
50
- ayadn -tl -n
60
+ `ayadn -tl -f`
61
+
62
+ Show as JSON:
63
+
64
+ `ayadn -tl -x`
51
65
  \n\n
52
66
  USAGE
53
67
  end
@@ -57,29 +71,43 @@ module Ayadn
57
71
 
58
72
  Basic usage:
59
73
 
60
- ayadn checkins
74
+ `ayadn checkins`
75
+
76
+ `ayadn -ck`
61
77
 
62
- ayadn -ck
78
+ Scroll the stream:
79
+
80
+ `ayadn -ck -s`
81
+
82
+ # -----
63
83
 
64
84
  Retrieves only 5 posts:
65
85
 
66
- ayadn -ck -c5
86
+ `ayadn -ck -c5`
67
87
 
68
88
  Shows index instead of post numbers:
69
89
 
70
- ayadn -ck -i
90
+ `ayadn -ck -i`
71
91
 
72
92
  Shows index and retrieves 30 posts:
73
93
 
74
- ayadn -ck -i -c30
94
+ `ayadn -ck -i -c30`
75
95
 
76
- Scroll the stream:
96
+ Show only new posts:
77
97
 
78
- ayadn -ck -s
98
+ `ayadn -ck -n`
79
99
 
80
- Show only new posts:
100
+ Force compact view:
81
101
 
82
- ayadn -ck -n
102
+ `ayadn -ck -k`
103
+
104
+ Force display blocked/muted/blacklisted:
105
+
106
+ `ayadn -ck -f`
107
+
108
+ Show as JSON:
109
+
110
+ `ayadn -ck -x`
83
111
  \n\n
84
112
  USAGE
85
113
  end
@@ -89,31 +117,43 @@ module Ayadn
89
117
 
90
118
  Basic usage:
91
119
 
92
- ayadn global
120
+ `ayadn global`
121
+
122
+ `ayadn -gl`
123
+
124
+ Scroll the stream:
125
+
126
+ `ayadn -gl -s`
93
127
 
94
- ayadn -gl
128
+ # -----
95
129
 
96
130
  Retrieves only 5 posts:
97
131
 
98
- ayadn -gl -c5
132
+ `ayadn -gl -c5`
99
133
 
100
134
  Shows index instead of post numbers:
101
135
 
102
- ayadn -gl -i
136
+ `ayadn -gl -i`
103
137
 
104
138
  Shows index and retrieves 30 posts:
105
139
 
106
- ayadn -gl -i -c30
140
+ `ayadn -gl -i -c30`
107
141
 
108
- Scroll the stream:
142
+ Show only new posts:
109
143
 
110
- ayadn -gl -s
144
+ `ayadn -gl -n`
111
145
 
112
- Show only new posts:
146
+ Force compact view:
147
+
148
+ `ayadn -gl -k`
113
149
 
114
- ayadn -gl -n
150
+ Force display blocked/muted/blacklisted:
115
151
 
116
- See `ayadn set` for the NiceRank filter.
152
+ `ayadn -gl -f`
153
+
154
+ Show as JSON:
155
+
156
+ `ayadn -gl -x`
117
157
  \n\n
118
158
  USAGE
119
159
  end
@@ -123,29 +163,43 @@ module Ayadn
123
163
 
124
164
  Basic usage:
125
165
 
126
- ayadn trending
166
+ `ayadn trending`
167
+
168
+ `ayadn -tr`
169
+
170
+ Scroll the stream:
171
+
172
+ `ayadn -tr -s`
127
173
 
128
- ayadn -tr
174
+ # -----
129
175
 
130
176
  Retrieves only 5 posts:
131
177
 
132
- ayadn -tr -c5
178
+ `ayadn -tr -c5`
133
179
 
134
180
  Shows index instead of post numbers:
135
181
 
136
- ayadn -tr -i
182
+ `ayadn -tr -i`
137
183
 
138
184
  Shows index and retrieves 30 posts:
139
185
 
140
- ayadn -tr -i -c30
186
+ `ayadn -tr -i -c30`
141
187
 
142
- Scroll the stream:
188
+ Show only new posts:
143
189
 
144
- ayadn -tr -s
190
+ `ayadn -tr -n`
145
191
 
146
- Show only new posts:
192
+ Force compact view:
193
+
194
+ `ayadn -tr -k`
195
+
196
+ Force display blocked/muted/blacklisted:
197
+
198
+ `ayadn -tr -f`
147
199
 
148
- ayadn -tr -n
200
+ Show as JSON:
201
+
202
+ `ayadn -tr -x`
149
203
  \n\n
150
204
  USAGE
151
205
  end
@@ -155,29 +209,43 @@ module Ayadn
155
209
 
156
210
  Basic usage:
157
211
 
158
- ayadn photos
212
+ `ayadn photos`
213
+
214
+ `ayadn -ph`
215
+
216
+ Scroll the stream:
217
+
218
+ `ayadn -ph -s`
159
219
 
160
- ayadn -ph
220
+ # -----
161
221
 
162
222
  Retrieves only 5 posts:
163
223
 
164
- ayadn -ph -c5
224
+ `ayadn -ph -c5`
165
225
 
166
226
  Shows index instead of post numbers:
167
227
 
168
- ayadn -ph -i
228
+ `ayadn -ph -i`
169
229
 
170
230
  Shows index and retrieves 30 posts:
171
231
 
172
- ayadn -ph -i -c30
232
+ `ayadn -ph -i -c30`
173
233
 
174
- Scroll the stream:
234
+ Show only new posts:
175
235
 
176
- ayadn -ph -s
236
+ `ayadn -ph -n`
177
237
 
178
- Show only new posts:
238
+ Force compact view:
239
+
240
+ `ayadn -ph -k`
241
+
242
+ Force display blocked/muted/blacklisted:
243
+
244
+ `ayadn -ph -f`
245
+
246
+ Show as JSON:
179
247
 
180
- ayadn -ph -n
248
+ `ayadn -ph -x`
181
249
  \n\n
182
250
  USAGE
183
251
  end
@@ -187,29 +255,43 @@ module Ayadn
187
255
 
188
256
  Basic usage:
189
257
 
190
- ayadn conversations
258
+ `ayadn conversations`
191
259
 
192
- ayadn -cq
260
+ `ayadn -cq`
261
+
262
+ Scroll the stream:
263
+
264
+ `ayadn -cq -s`
265
+
266
+ # -----
193
267
 
194
268
  Retrieves only 5 posts:
195
269
 
196
- ayadn -cq -c5
270
+ `ayadn -cq -c5`
197
271
 
198
272
  Shows index instead of post numbers:
199
273
 
200
- ayadn -cq -i
274
+ `ayadn -cq -i`
201
275
 
202
276
  Shows index and retrieves 30 posts:
203
277
 
204
- ayadn -cq -i -c30
278
+ `ayadn -cq -i -c30`
205
279
 
206
- Scroll the stream:
280
+ Show only new posts:
207
281
 
208
- ayadn -cq -s
282
+ `ayadn -cq -n`
209
283
 
210
- Show only new posts:
284
+ Force compact view:
285
+
286
+ `ayadn -cq -k`
287
+
288
+ Force display blocked/muted/blacklisted:
211
289
 
212
- ayadn -cq -n
290
+ `ayadn -cq -f`
291
+
292
+ Show as JSON:
293
+
294
+ `ayadn -cq -x`
213
295
  \n\n
214
296
  USAGE
215
297
  end
@@ -219,25 +301,43 @@ module Ayadn
219
301
 
220
302
  Basic usage:
221
303
 
222
- ayadn mentions @ericd
304
+ `ayadn mentions @ericd`
305
+
306
+ `ayadn -m ericd`
223
307
 
224
- ayadn -m @ericd
308
+ ("@" is optional)
309
+
310
+ You can use "me" instead of your username for your own mentions.
311
+
312
+ Scroll mentions:
313
+
314
+ `ayadn -m -s me`
315
+
316
+ # -----
225
317
 
226
318
  Retrieves only 5 posts:
227
319
 
228
- ayadn -m -c5 @ericd
320
+ `ayadn -m -c5 me`
229
321
 
230
322
  Shows index instead of post numbers:
231
323
 
232
- ayadn -m -i @ericd
324
+ `ayadn -m -i me`
233
325
 
234
326
  Shows index and retrieves 30 posts:
235
327
 
236
- ayadn -m -i -c30 @ericd
328
+ `ayadn -m -i -c30 me`
237
329
 
238
- Scroll mentions:
330
+ Force compact view:
239
331
 
240
- ayadn -m -s @ericd
332
+ `ayadn -m -i -k me`
333
+
334
+ Force display blocked/muted/blacklisted:
335
+
336
+ `ayadn -m -f me`
337
+
338
+ Show as JSON:
339
+
340
+ `ayadn -m -x me`
241
341
  \n\n
242
342
  USAGE
243
343
  end
@@ -247,25 +347,43 @@ module Ayadn
247
347
 
248
348
  Basic usage:
249
349
 
250
- ayadn userposts @ericd
350
+ `ayadn userposts @ericd`
351
+
352
+ `ayadn -up @ericd`
353
+
354
+ Scroll posts:
355
+
356
+ `ayadn -up -s ericd`
357
+
358
+ ("@" is optional)
251
359
 
252
- ayadn -up @ericd
360
+ You can use "me" instead of your username for your own posts.
361
+
362
+ # -----
253
363
 
254
364
  Retrieves only 5 posts:
255
365
 
256
- ayadn -up -c5 @ericd
366
+ `ayadn -up -c5 me`
257
367
 
258
368
  Shows index instead of post numbers:
259
369
 
260
- ayadn -up -i @ericd
370
+ `ayadn -up -i me`
261
371
 
262
372
  Shows index and retrieves 30 posts:
263
373
 
264
- ayadn -up -i -c30 @ericd
374
+ `ayadn -up -i -c30 me`
265
375
 
266
- Scroll posts:
376
+ Force compact view:
377
+
378
+ `ayadn -up me -i -c30 -k`
267
379
 
268
- ayadn -up -s @ericd
380
+ Force display blocked/muted/blacklisted:
381
+
382
+ `ayadn -up -f me`
383
+
384
+ Show as JSON:
385
+
386
+ `ayadn -up -x me`
269
387
  \n\n
270
388
  USAGE
271
389
  end
@@ -275,21 +393,39 @@ module Ayadn
275
393
 
276
394
  Basic usage:
277
395
 
278
- ayadn whatstarred @ericd
396
+ `ayadn whatstarred @ericd`
397
+
398
+ `ayadn -was ericd`
399
+
400
+ ("@" is optional)
401
+
402
+ You can use "me" instead of your username for your own stars.
279
403
 
280
- ayadn -was @ericd
404
+ # -----
281
405
 
282
406
  Retrieves only 5 posts:
283
407
 
284
- ayadn -was -c5 @ericd
408
+ `ayadn -was -c5 @ericd`
285
409
 
286
410
  Shows index instead of post numbers:
287
411
 
288
- ayadn -was -i @ericd
412
+ `ayadn -was -i @ericd`
289
413
 
290
414
  Shows index and retrieves 30 posts:
291
415
 
292
- ayadn -was -i -c30 @ericd
416
+ `ayadn -was -i -c30 @ericd`
417
+
418
+ Force compact view:
419
+
420
+ `ayadn -was -i -c30 @ericd -k`
421
+
422
+ Show result as JSON:
423
+
424
+ `ayadn -was -x @ericd`
425
+
426
+ Extracts all links contained in the starred posts:
427
+
428
+ `ayadn -was -e @ericd`
293
429
  \n\n
294
430
  USAGE
295
431
  end
@@ -299,9 +435,19 @@ module Ayadn
299
435
 
300
436
  Usage:
301
437
 
302
- ayadn interactions
438
+ `ayadn interactions`
303
439
 
304
- ayadn -int
440
+ `ayadn -int`
441
+
442
+ # -----
443
+
444
+ Force compact view:
445
+
446
+ `ayadn -int -k`
447
+
448
+ Show result as JSON:
449
+
450
+ `ayadn -int -x`
305
451
  \n\n
306
452
  USAGE
307
453
  end
@@ -311,9 +457,19 @@ module Ayadn
311
457
 
312
458
  Usage:
313
459
 
314
- ayadn whoreposted 22790201
460
+ `ayadn whoreposted 22790201`
461
+
462
+ `ayadn -wor 22790201`
315
463
 
316
- ayadn -wor 22790201
464
+ # -----
465
+
466
+ Force compact view:
467
+
468
+ `ayadn -wor -k 22790201`
469
+
470
+ Show result as JSON:
471
+
472
+ `ayadn -wor -x 22790201`
317
473
  \n\n
318
474
  USAGE
319
475
  end
@@ -323,9 +479,19 @@ module Ayadn
323
479
 
324
480
  Usage:
325
481
 
326
- ayadn whostarred 22790201
482
+ `ayadn whostarred 22790201`
483
+
484
+ `ayadn -wos 22790201`
485
+
486
+ # -----
327
487
 
328
- ayadn -wos 22790201
488
+ Force compact view:
489
+
490
+ `ayadn -was -k 22790201`
491
+
492
+ Show result as JSON:
493
+
494
+ `ayadn -wos -x 22790201`
329
495
  \n\n
330
496
  USAGE
331
497
  end
@@ -335,17 +501,31 @@ module Ayadn
335
501
 
336
502
  Usage:
337
503
 
338
- ayadn convo 23362788
504
+ `ayadn convo 23362788`
505
+
506
+ `ayadn -co 23362788`
507
+
508
+ Scroll the conversation:
509
+
510
+ `ayadn -co -s 23362788`
339
511
 
340
- ayadn -co 23362788
512
+ # -----
341
513
 
342
514
  Show index instead of post numbers:
343
515
 
344
- ayadn -co -i 23362788
516
+ `ayadn -co -i 23362788`
345
517
 
346
- Scroll the conversation:
518
+ Force compact view:
519
+
520
+ `ayadn -co -i -k 23362788`
521
+
522
+ Force display blocked/muted/blacklisted:
523
+
524
+ `ayadn -co -f 23362788`
525
+
526
+ Show as JSON:
347
527
 
348
- ayadn -co -s 23362788
528
+ `ayadn -co -x 23362788`
349
529
  \n\n
350
530
  USAGE
351
531
  end
@@ -355,9 +535,45 @@ module Ayadn
355
535
 
356
536
  Usage:
357
537
 
358
- ayadn followings @ericd
538
+ `ayadn followings @ericd`
359
539
 
360
- ayadn -fwg @ericd
540
+ `ayadn -fwg ericd`
541
+
542
+ ("@" is optional)
543
+
544
+ You can use "me" instead of your username for your own account.
545
+
546
+ # -----
547
+
548
+ Sort the list by username:
549
+
550
+ `ayadn -fwg -u me`
551
+
552
+ Sort the list by name:
553
+
554
+ `ayadn -fwg -n me`
555
+
556
+ Sort the list by posts/day:
557
+
558
+ `ayadn -fwg -d me`
559
+
560
+ Sort the list by total posts:
561
+
562
+ `ayadn -fwg -p me`
563
+
564
+ Reverse the list order:
565
+
566
+ `ayadn -fwg -r me`
567
+
568
+ `ayadn -fwg -u -r me`
569
+
570
+ Force compact view:
571
+
572
+ `ayadn -fwg -k me`
573
+
574
+ Show as JSON:
575
+
576
+ `ayadn -fwg me`
361
577
  \n\n
362
578
  USAGE
363
579
  end
@@ -367,9 +583,45 @@ module Ayadn
367
583
 
368
584
  Usage:
369
585
 
370
- ayadn followers @ericd
586
+ `ayadn followers @ericd`
587
+
588
+ `ayadn -fwr ericd`
589
+
590
+ ("@" is optional)
591
+
592
+ You can use "me" instead of your username for your own account.
593
+
594
+ # -----
595
+
596
+ Sort the list by username:
597
+
598
+ `ayadn -fwr -u me`
371
599
 
372
- ayadn -fwr @ericd
600
+ Sort the list by name:
601
+
602
+ `ayadn -fwr -n me`
603
+
604
+ Sort the list by posts/day:
605
+
606
+ `ayadn -fwr -d me`
607
+
608
+ Sort the list by total posts:
609
+
610
+ `ayadn -fwr -p me`
611
+
612
+ Reverse the list order:
613
+
614
+ `ayadn -fwr -r me`
615
+
616
+ `ayadn -fwr -u -r me`
617
+
618
+ Force compact view:
619
+
620
+ `ayadn -fwr -k me`
621
+
622
+ Show as JSON:
623
+
624
+ `ayadn -fwr me`
373
625
  \n\n
374
626
  USAGE
375
627
  end
@@ -379,9 +631,42 @@ module Ayadn
379
631
 
380
632
  Usage:
381
633
 
382
- ayadn muted
634
+ `ayadn muted`
635
+
636
+ `ayadn -mtd`
637
+
638
+ # -----
639
+
640
+ Sort the list by username:
641
+
642
+ `ayadn -mtd -u`
643
+
644
+ Sort the list by name:
645
+
646
+ `ayadn -mtd -n`
647
+
648
+ Sort the list by posts/day:
649
+
650
+ `ayadn -mtd -d`
651
+
652
+ Sort the list by total posts:
653
+
654
+ `ayadn -mtd -p`
655
+
656
+ Reverse the list order:
657
+
658
+ `ayadn -mtd -r`
659
+
660
+ `ayadn -mtd -u -r`
661
+
662
+ Force compact view:
663
+
664
+ `ayadn -mtd -k`
665
+
666
+ Show as JSON:
667
+
668
+ `ayadn -mtd`
383
669
 
384
- ayadn -mtd
385
670
  \n\n
386
671
  USAGE
387
672
  end
@@ -391,9 +676,41 @@ module Ayadn
391
676
 
392
677
  Usage:
393
678
 
394
- ayadn blocked
679
+ `ayadn blocked`
680
+
681
+ `ayadn -bkd`
682
+
683
+ # -----
684
+
685
+ Sort the list by username:
686
+
687
+ `ayadn -bkd -u`
688
+
689
+ Sort the list by name:
690
+
691
+ `ayadn -bkd -n`
692
+
693
+ Sort the list by posts/day:
395
694
 
396
- ayadn -bkd
695
+ `ayadn -bkd -d`
696
+
697
+ Sort the list by total posts:
698
+
699
+ `ayadn -bkd -p`
700
+
701
+ Reverse the list order:
702
+
703
+ `ayadn -bkd -r`
704
+
705
+ `ayadn -bkd -u -r`
706
+
707
+ Force compact view:
708
+
709
+ `ayadn -bkd -k`
710
+
711
+ Show as JSON:
712
+
713
+ `ayadn -bkd`
397
714
  \n\n
398
715
  USAGE
399
716
  end
@@ -403,9 +720,27 @@ module Ayadn
403
720
 
404
721
  Usage:
405
722
 
406
- ayadn hashtag thememonday
723
+ `ayadn hashtag thememonday`
724
+
725
+ `ayadn -t thememonday`
726
+
727
+ # -----
728
+
729
+ Extracts all links contained in the posts:
407
730
 
408
- ayadn -t thememonday
731
+ `ayadn -t -e thememonday`
732
+
733
+ Ignore the blocked/muted/blacklisted filters:
734
+
735
+ `ayadn -t -f thememonday`
736
+
737
+ Force compact view:
738
+
739
+ `ayadn -t thememonday -k`
740
+
741
+ Show as JSON:
742
+
743
+ `ayadn -t -x thememonday`
409
744
  \n\n
410
745
  USAGE
411
746
  end
@@ -415,21 +750,41 @@ module Ayadn
415
750
 
416
751
  # Basic usage
417
752
 
418
- ayadn search screenshot iterm
753
+ `ayadn search oneword anotherone`
419
754
 
420
- ayadn search screenshot iterm
755
+ `ayadn -s oneword anotherone`
756
+
757
+ # -----
421
758
 
422
759
  Retrieves only 5 posts:
423
760
 
424
- ayadn search -c5 screenshot iterm
761
+ `ayadn -s -c5 screenshot iterm`
425
762
 
426
763
  Shows index instead of post numbers:
427
764
 
428
- ayadn search -i screenshot iterm
765
+ `ayadn -s -i screenshot iterm`
429
766
 
430
767
  Shows index and retrieves 30 posts:
431
768
 
432
- ayadn search -i -c30 screenshot iterm
769
+ `ayadn -s -i -c30 screenshot iterm`
770
+
771
+ Extracts all links contained in the posts:
772
+
773
+ `ayadn -s -e screenshot iterm`
774
+
775
+ Ignore the blocked/muted/blacklisted filters:
776
+
777
+ `ayadn -s -f screenshot iterm`
778
+
779
+ Force compact view:
780
+
781
+ `ayadn -s screenshot -k`
782
+
783
+ Show as JSON:
784
+
785
+ `ayadn -s -x screenshot iterm`
786
+
787
+ # -----
433
788
 
434
789
  # Advanced usage
435
790
 
@@ -441,9 +796,9 @@ module Ayadn
441
796
 
442
797
  Usage:
443
798
 
444
- ayadn search --messages 33642 ipad movies
799
+ `ayadn -s --messages 33642 ipad movies`
445
800
 
446
- ayadn search --messages my_alias ipad movies
801
+ `ayadn -s --messages my_alias ipad movies`
447
802
 
448
803
  ## Users
449
804
 
@@ -451,7 +806,7 @@ module Ayadn
451
806
 
452
807
  Usage:
453
808
 
454
- ayadn search --users anime
809
+ `ayadn -s --users anime`
455
810
 
456
811
  ## Channels
457
812
 
@@ -459,7 +814,7 @@ module Ayadn
459
814
 
460
815
  Usage:
461
816
 
462
- ayadn search --channels movies
817
+ `ayadn -s --channels movies`
463
818
 
464
819
  ## Annotations
465
820
 
@@ -467,7 +822,7 @@ module Ayadn
467
822
 
468
823
  Usage:
469
824
 
470
- ayadn search --annotations net.app.core.crosspost
825
+ `ayadn -s --annotations net.app.core.crosspost`
471
826
  \n\n
472
827
  USAGE
473
828
  end
@@ -477,9 +832,19 @@ module Ayadn
477
832
 
478
833
  Usage:
479
834
 
480
- ayadn settings
835
+ `ayadn settings`
836
+
837
+ `ayadn -sg`
838
+
839
+ # -----
481
840
 
482
- ayadn -sg
841
+ Force compact view:
842
+
843
+ `ayadn -sg -k`
844
+
845
+ Show as JSON:
846
+
847
+ `ayadn -sg -x`
483
848
  \n\n
484
849
  USAGE
485
850
  end
@@ -489,9 +854,29 @@ module Ayadn
489
854
 
490
855
  Usage:
491
856
 
492
- ayadn userinfo @ericd
857
+ `ayadn userinfo @ericd`
858
+
859
+ `ayadn -ui @ericd`
860
+
861
+ ("@" is optional)
862
+
863
+ You can use "me" instead of your username for your own account.
493
864
 
494
- ayadn -ui @ericd
865
+ `ayadn -ui me`
866
+
867
+ # -----
868
+
869
+ Get infos about several users:
870
+
871
+ `ayadn -ui ericd adnapi`
872
+
873
+ Force compact view:
874
+
875
+ `ayadn -ui ericd -k`
876
+
877
+ Show as JSON:
878
+
879
+ `ayadn -ui -x me`
495
880
  \n\n
496
881
  USAGE
497
882
  end
@@ -501,21 +886,21 @@ module Ayadn
501
886
 
502
887
  Usage:
503
888
 
504
- ayadn userupdate --bio
889
+ `ayadn userupdate --bio`
505
890
 
506
- ayadn -U --bio
891
+ `ayadn -U --bio`
507
892
 
508
- ayadn -U --name
893
+ `ayadn -U --name`
509
894
 
510
- ayadn -U --birthday
895
+ `ayadn -U --birthday`
511
896
 
512
- ayadn -U --twitter
897
+ `ayadn -U --twitter`
513
898
 
514
- ayadn -U --blog
899
+ `ayadn -U --blog`
515
900
 
516
- ayadn -U --avatar ~/Pics/myface.jpg
901
+ `ayadn -U --avatar ~/Pics/myface.jpg`
517
902
 
518
- ayadn -U --cover ~/Pics/mycats.jpg
903
+ `ayadn -U --cover ~/Pics/mycats.jpg`
519
904
  \n\n
520
905
  USAGE
521
906
  end
@@ -525,9 +910,19 @@ module Ayadn
525
910
 
526
911
  Usage:
527
912
 
528
- ayadn postinfo 23365251
913
+ `ayadn postinfo 23365251`
914
+
915
+ `ayadn -pi 23365251`
916
+
917
+ # -----
918
+
919
+ Force compact view:
920
+
921
+ `ayadn -pi 23365251 -k`
922
+
923
+ Show as JSON:
529
924
 
530
- ayadn -pi 23365251
925
+ `ayadn -pi -x 23365251`
531
926
  \n\n
532
927
  USAGE
533
928
  end
@@ -537,19 +932,23 @@ module Ayadn
537
932
 
538
933
  Basic usage:
539
934
 
540
- ayadn files
935
+ `ayadn files`
541
936
 
542
- ayadn -fl
937
+ `ayadn -fl`
938
+
939
+ # -----
543
940
 
544
941
  Retrieves only 5 files:
545
942
 
546
- ayadn -fl -c5
943
+ `ayadn -fl -c5`
547
944
 
548
945
  Retrieves all files:
549
946
 
550
- ayadn -fl -a
947
+ `ayadn -fl -a`
948
+
949
+ Show as JSON:
551
950
 
552
- You can then download a file with its id: 'ayadn -df 23344556'
951
+ `ayadn -fl -c5 -x`
553
952
  \n\n
554
953
  USAGE
555
954
  end
@@ -559,9 +958,13 @@ module Ayadn
559
958
 
560
959
  Usage:
561
960
 
562
- ayadn delete 23365251
961
+ `ayadn delete 23365251`
962
+
963
+ `ayadn -D 23365251`
563
964
 
564
- ayadn -D 23365251
965
+ You can delete several posts at once:
966
+
967
+ `ayadn -D 42371250 23365251 42253824`
565
968
  \n\n
566
969
  USAGE
567
970
  end
@@ -571,11 +974,15 @@ module Ayadn
571
974
 
572
975
  Usage:
573
976
 
574
- ayadn delete_m 42666 3365251
977
+ `ayadn delete_m 42666 3365251`
978
+
979
+ `ayadn -DM 42666 3365251`
980
+
981
+ `ayadn -DM my_channel_alias 3365251`
575
982
 
576
- ayadn -DM 42666 3365251
983
+ You can delete several messages at once:
577
984
 
578
- ayadn -DM my_channel_alias 3365251
985
+ `ayadn -DM mychan 3365251 3365252 3365253`
579
986
  \n\n
580
987
  USAGE
581
988
  end
@@ -585,9 +992,13 @@ module Ayadn
585
992
 
586
993
  Usage:
587
994
 
588
- ayadn unfollow @spammer
995
+ `ayadn unfollow @spammer`
589
996
 
590
- ayadn -UF @spammer
997
+ `ayadn -UF @spammer`
998
+
999
+ You can unfollow several users at once:
1000
+
1001
+ `ayadn -UF @spammer @myex @thickhead`
591
1002
  \n\n
592
1003
  USAGE
593
1004
  end
@@ -597,9 +1008,13 @@ module Ayadn
597
1008
 
598
1009
  Usage:
599
1010
 
600
- ayadn unmute @ericd
1011
+ `ayadn unmute @ericd`
1012
+
1013
+ `ayadn -UM @ericd`
601
1014
 
602
- ayadn -UM @ericd
1015
+ You can unmute several users at once:
1016
+
1017
+ `ayadn -UM @ericd @myex @thickhead`
603
1018
  \n\n
604
1019
  USAGE
605
1020
  end
@@ -609,9 +1024,13 @@ module Ayadn
609
1024
 
610
1025
  Usage:
611
1026
 
612
- ayadn unblock @notspammeractually
1027
+ `ayadn unblock @notspammeractually`
1028
+
1029
+ `ayadn -UB @notspammeractually`
1030
+
1031
+ You can unblock several users at once:
613
1032
 
614
- ayadn -UB @notspammeractually
1033
+ `ayadn -UB @notspammeractually @myex @thickhead`
615
1034
  \n\n
616
1035
  USAGE
617
1036
  end
@@ -621,9 +1040,13 @@ module Ayadn
621
1040
 
622
1041
  Usage:
623
1042
 
624
- ayadn unrepost 23365251
1043
+ `ayadn unrepost 23365251`
625
1044
 
626
- ayadn -UR 23365251
1045
+ `ayadn -UR 23365251`
1046
+
1047
+ You can unrepost several posts at once:
1048
+
1049
+ `ayadn -UR 23365251 42253824`
627
1050
  \n\n
628
1051
  USAGE
629
1052
  end
@@ -633,9 +1056,13 @@ module Ayadn
633
1056
 
634
1057
  Usage:
635
1058
 
636
- ayadn unstar 23365251
1059
+ `ayadn unstar 23365251`
1060
+
1061
+ `ayadn -US 23365251`
637
1062
 
638
- ayadn -US 23365251
1063
+ You can unstar several posts at once:
1064
+
1065
+ `ayadn -US 23365251 42253824`
639
1066
  \n\n
640
1067
  USAGE
641
1068
  end
@@ -645,9 +1072,13 @@ module Ayadn
645
1072
 
646
1073
  Usage:
647
1074
 
648
- ayadn star 23365251
1075
+ `ayadn star 23365251`
1076
+
1077
+ `ayadn -ST 23365251`
1078
+
1079
+ You can star several posts at once:
649
1080
 
650
- ayadn -ST 23365251
1081
+ `ayadn -ST 23365251 42253824`
651
1082
  \n\n
652
1083
  USAGE
653
1084
  end
@@ -657,9 +1088,13 @@ module Ayadn
657
1088
 
658
1089
  Usage:
659
1090
 
660
- ayadn repost 23365251
1091
+ `ayadn repost 23365251`
661
1092
 
662
- ayadn -O 23365251
1093
+ `ayadn -O 23365251`
1094
+
1095
+ You can repost several posts at once:
1096
+
1097
+ `ayadn -O 23365251 42253824`
663
1098
  \n\n
664
1099
  USAGE
665
1100
  end
@@ -669,9 +1104,13 @@ module Ayadn
669
1104
 
670
1105
  Usage:
671
1106
 
672
- ayadn follow @ericd
1107
+ `ayadn follow @ericd`
1108
+
1109
+ `ayadn -FO @ericd`
673
1110
 
674
- ayadn -FO @ericd
1111
+ You can follow several users at once:
1112
+
1113
+ `ayadn -FO @ericd @ayadn @adnapi`
675
1114
  \n\n
676
1115
  USAGE
677
1116
  end
@@ -681,9 +1120,13 @@ module Ayadn
681
1120
 
682
1121
  Usage:
683
1122
 
684
- ayadn mute @spammer
1123
+ `ayadn mute @spammer`
1124
+
1125
+ `ayadn -MU @spammer`
1126
+
1127
+ You can mute several users at once:
685
1128
 
686
- ayadn -MU @spammer
1129
+ `ayadn -MU @spammer @myex @thickhead`
687
1130
  \n\n
688
1131
  USAGE
689
1132
  end
@@ -693,9 +1136,13 @@ module Ayadn
693
1136
 
694
1137
  Usage:
695
1138
 
696
- ayadn block @spammer
1139
+ `ayadn block @spammer`
697
1140
 
698
- ayadn -BL @spammer
1141
+ `ayadn -BL @spammer`
1142
+
1143
+ You can block several users at once:
1144
+
1145
+ `ayadn -MU @spammer @myex @thickhead`
699
1146
  \n\n
700
1147
  USAGE
701
1148
  end
@@ -705,9 +1152,35 @@ module Ayadn
705
1152
 
706
1153
  Usage:
707
1154
 
708
- ayadn channels
1155
+ `ayadn channels`
1156
+
1157
+ `ayadn -ch`
1158
+
1159
+ # -----
1160
+
1161
+ Retrieve only the specified channel(s):
1162
+
1163
+ `ayadn -ch --id 42133 42134`
1164
+
1165
+ Retrieve only your broadcast channel(s):
1166
+
1167
+ `ayadn -ch --broadcasts`
1168
+
1169
+ Retrieve only your private messages channel(s):
1170
+
1171
+ `ayadn -ch --messages`
1172
+
1173
+ Retrieve only your patter room channel(s):
1174
+
1175
+ `ayadn -ch --patter`
709
1176
 
710
- ayadn -ch
1177
+ Retrieve all channel(s) except broadcasts, messages or patter:
1178
+
1179
+ `ayadn -ch --other`
1180
+
1181
+ Show as JSON:
1182
+
1183
+ `ayadn -ch -x`
711
1184
  \n\n
712
1185
  USAGE
713
1186
  end
@@ -717,35 +1190,45 @@ module Ayadn
717
1190
 
718
1191
  Basic usage:
719
1192
 
720
- ayadn messages 46217
1193
+ `ayadn messages 46217`
1194
+
1195
+ `ayadn -ms 46217`
1196
+
1197
+ Scroll messages:
1198
+
1199
+ `ayadn -ms -s 46217`
721
1200
 
722
- ayadn -ms 46217
1201
+ # -----
723
1202
 
724
1203
  Retrieves only 5 messages:
725
1204
 
726
- ayadn -ms -c5 46217
1205
+ `ayadn -ms -c5 46217`
727
1206
 
728
1207
  Retrieves only new messages:
729
1208
 
730
- ayadn -ms -n 46217
1209
+ `ayadn -ms -n 46217`
731
1210
 
732
- Scroll messages:
1211
+ Force compact view:
733
1212
 
734
- ayadn -ms -s 46217
1213
+ `ayadn -ms -n 46217 -k`
735
1214
 
736
1215
  Ayadn will mark this PM channel as read after running this command.
737
1216
 
738
- You can pass an option, `-z`, to avoid this for the time of the command:
1217
+ You can pass an option, `-z`, to avoid this temporarily:
739
1218
 
740
- ayadn -ms -z 46217
1219
+ `ayadn -ms -z 46217`
741
1220
 
742
1221
  Or you can set it off permanently:
743
1222
 
744
- ayadn set marker update_messages false
1223
+ `ayadn set marker messages false`
745
1224
 
746
1225
  If you've set an alias for the channel, you can use it instead of the channel id:
747
1226
 
748
- ayadn -ms my_alias
1227
+ `ayadn -ms my_alias`
1228
+
1229
+ Show as JSON:
1230
+
1231
+ `ayadn -ms -x 46217`
749
1232
  \n\n
750
1233
  USAGE
751
1234
  end
@@ -755,19 +1238,25 @@ module Ayadn
755
1238
 
756
1239
  Usage:
757
1240
 
758
- ayadn messages_unread
1241
+ `ayadn messages_unread`
1242
+
1243
+ `ayadn -pmu`
759
1244
 
760
- ayadn -pmu
1245
+ # -----
761
1246
 
762
1247
  Ayadn will mark all your PM channels as read after running this command.
763
1248
 
764
1249
  You can pass an option, `-z`, to avoid this for the time of the command:
765
1250
 
766
- ayadn -pmu -z
1251
+ `ayadn -pmu -z`
767
1252
 
768
1253
  Or you can set it off permanently:
769
1254
 
770
- ayadn set marker update_messages false
1255
+ `ayadn set marker messages false`
1256
+
1257
+ Force compact view:
1258
+
1259
+ `ayadn -pmu -k`
771
1260
  \n\n
772
1261
  USAGE
773
1262
  end
@@ -777,7 +1266,7 @@ module Ayadn
777
1266
 
778
1267
  Usage:
779
1268
 
780
- ayadn pin 23365251 screenshot iterm
1269
+ `ayadn pin 23365251 screenshot iterm`
781
1270
  \n\n
782
1271
  USAGE
783
1272
  end
@@ -787,15 +1276,17 @@ module Ayadn
787
1276
 
788
1277
  Usage:
789
1278
 
790
- ayadn post 'Hello from Ayadn!'
1279
+ `ayadn post 'Hello from Ayadn!'`
1280
+
1281
+ `ayadn -P 'Hello from Ayadn!'`
791
1282
 
792
- ayadn -P 'Hello from Ayadn!'
1283
+ `ayadn -P Watching a movie with friends`
793
1284
 
794
- ayadn -P Watching a movie with friends
1285
+ # -----
795
1286
 
796
1287
  Embed a picture:
797
1288
 
798
- ayadn -P "lol cat" -E ~/Pics/lolcat.jpg
1289
+ `ayadn -P "lol cat" -E ~/Pics/lolcat.jpg`
799
1290
 
800
1291
  You don't have to put quotes around your text, but it's better to do it.
801
1292
 
@@ -803,13 +1294,13 @@ module Ayadn
803
1294
 
804
1295
  Embed an online video:
805
1296
 
806
- ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY
1297
+ `ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
807
1298
 
808
- ayadn -P wargarbl -V http://vimeo.com/123234345
1299
+ `ayadn -P wargarbl -V http://vimeo.com/123234345`
809
1300
 
810
1301
  Embed a movie poster:
811
1302
 
812
- ayadn -P "I'll be back" -M terminator
1303
+ `ayadn -P "I'll be back" -M terminator`
813
1304
 
814
1305
  (This is different from the 'movie' command, check the docs.)
815
1306
  \n\n
@@ -821,25 +1312,27 @@ module Ayadn
821
1312
 
822
1313
  Usage:
823
1314
 
824
- ayadn write
1315
+ `ayadn write`
825
1316
 
826
- ayadn -W
1317
+ `ayadn -W`
1318
+
1319
+ # -----
827
1320
 
828
1321
  Embed a picture:
829
1322
 
830
- ayadn -W -E ~/Pics/lolcat.jpg
1323
+ `ayadn -W -E ~/Pics/lolcat.jpg`
831
1324
 
832
1325
  It enters the writing mode where you will type your post.
833
1326
 
834
1327
  Embed an online video:
835
1328
 
836
- ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY
1329
+ `ayadn -W -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
837
1330
 
838
- ayadn -P wargarbl -V http://vimeo.com/123234345
1331
+ `ayadn -W -V http://vimeo.com/123234345`
839
1332
 
840
1333
  Embed a movie poster:
841
1334
 
842
- ayadn -P "I'll be back" -M terminator
1335
+ `ayadn -W -M terminator`
843
1336
 
844
1337
  (This is different from the 'movie' command, check the docs.)
845
1338
  \n\n
@@ -851,13 +1344,35 @@ module Ayadn
851
1344
 
852
1345
  Usage:
853
1346
 
854
- ayadn pm @ericd
1347
+ `ayadn pm @ericd`
1348
+
1349
+ # -----
855
1350
 
856
1351
  Embed a picture:
857
1352
 
858
- ayadn pm -E ~/Pics/lolcat.jpg
1353
+ `ayadn pm @ericd -E ~/Pics/lolcat.jpg`
1354
+
1355
+ Embed an online video:
1356
+
1357
+ `ayadn pm @ericd -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
1358
+
1359
+ `ayadn pm @ericd -V http://vimeo.com/123234345`
1360
+
1361
+ Embed a movie poster:
1362
+
1363
+ `ayadn pm @ericd -M terminator`
859
1364
 
860
1365
  It enters the writing mode where you will type your message.
1366
+
1367
+ Ayadn will mark your PM channel as read after running this command.
1368
+
1369
+ You can pass an option, `-z`, to avoid this for the time of the command:
1370
+
1371
+ `ayadn pm -z @ericd`
1372
+
1373
+ Or you can set it off permanently:
1374
+
1375
+ `ayadn set marker messages false`
861
1376
  \n\n
862
1377
  USAGE
863
1378
  end
@@ -873,7 +1388,35 @@ module Ayadn
873
1388
 
874
1389
  It enters the writing mode where you will type your message.
875
1390
 
1391
+ # -----
1392
+
876
1393
  If you've set an alias for the channel, you can post to it with 'ayadn -C my_alias'
1394
+
1395
+ Embed a picture:
1396
+
1397
+ `ayadn -C 46217 -E ~/Pics/lolcat.jpg`
1398
+
1399
+ Embed an online video:
1400
+
1401
+ `ayadn -C 46217 -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
1402
+
1403
+ `ayadn -C 46217 -V http://vimeo.com/123234345`
1404
+
1405
+ Embed a movie poster:
1406
+
1407
+ `ayadn -C 46217 -M terminator`
1408
+
1409
+ It enters the writing mode where you will type your message.
1410
+
1411
+ Ayadn will mark your PM channel as read after running this command.
1412
+
1413
+ You can pass an option, `-z`, to avoid this for the time of the command:
1414
+
1415
+ `ayadn -C -z 46217`
1416
+
1417
+ Or you can set it off permanently:
1418
+
1419
+ `ayadn set marker messages false`
877
1420
  \n\n
878
1421
  USAGE
879
1422
  end
@@ -883,31 +1426,37 @@ module Ayadn
883
1426
 
884
1427
  Usage:
885
1428
 
886
- ayadn reply 23365251
1429
+ `ayadn reply 23365251`
887
1430
 
888
- ayadn -R 23365251
1431
+ `ayadn -R 23365251`
889
1432
 
890
1433
  It enters the writing mode where you will type your reply.
891
1434
 
892
1435
  Mentions and/or username will be detected and your text will be inserted appropriately.
893
1436
 
894
- If you reply to a repost, Ayadn will automatically replace it by the original post.
1437
+ # -----
1438
+
1439
+ If you reply to a repost, Ayadn will automatically replace it by the original post, following the App.net guidelines. But you can force respond to the reposted one by passing the 'noredirect' option:
1440
+
1441
+ `ayadn -R --noredirect 23365251`
1442
+
1443
+ If you just viewed a stream with the -i (--index) option, you can also reply to a post by its index:
895
1444
 
896
- If you just viewed a stream with the -i (--index) option, you can also reply to a post by its index (ex: ayadn -R 3).
1445
+ `ayadn -R 3`
897
1446
 
898
1447
  Embed a picture in a reply:
899
1448
 
900
- ayadn -R 23365251 -E ~/Pics/lolcat.jpg
1449
+ `ayadn -R 23365251 -E ~/Pics/lolcat.jpg`
901
1450
 
902
1451
  Embed an online video:
903
1452
 
904
- ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY
1453
+ `ayadn -R23365251 -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
905
1454
 
906
- ayadn -P wargarbl -V http://vimeo.com/123234345
1455
+ `ayadn -R23365251 -V http://vimeo.com/123234345`
907
1456
 
908
1457
  Embed a movie poster:
909
1458
 
910
- ayadn -P "I'll be back" -M terminator
1459
+ `ayadn -R23365251 -M terminator`
911
1460
 
912
1461
  (This is different from the 'movie' command, check the docs.)
913
1462
  \n\n
@@ -917,9 +1466,9 @@ module Ayadn
917
1466
  <<-USAGE
918
1467
  Set (configure) a parameter and save it.
919
1468
 
920
- Example: ayadn set color mentions blue
1469
+ Example: `ayadn set color mentions blue`
921
1470
 
922
- See the list of configurable parameters with: ayadn -sg
1471
+ See the list of configurable parameters with: `ayadn -sg`
923
1472
  \n\n
924
1473
  USAGE
925
1474
  end
@@ -927,7 +1476,7 @@ module Ayadn
927
1476
  <<-USAGE
928
1477
  Set ITEM to color COLOR.
929
1478
 
930
- Example: ayadn set color mentions blue
1479
+ Example: `ayadn set color mentions blue`
931
1480
  \n\n
932
1481
  USAGE
933
1482
  end
@@ -935,7 +1484,7 @@ module Ayadn
935
1484
  <<-USAGE
936
1485
  Set ITEM to true or false.
937
1486
 
938
- Example: ayadn set directed true
1487
+ Example: `ayadn set directed true`
939
1488
  \n\n
940
1489
  USAGE
941
1490
  end
@@ -943,7 +1492,7 @@ module Ayadn
943
1492
  <<-USAGE
944
1493
  Set ITEM to be activated or not.
945
1494
 
946
- Example: ayadn set auto_save_lists true
1495
+ Example: `ayadn set lists true`
947
1496
  \n\n
948
1497
  USAGE
949
1498
  end
@@ -951,7 +1500,7 @@ module Ayadn
951
1500
  <<-USAGE
952
1501
  Set ITEM to retrieve NUMBER of elements by default.
953
1502
 
954
- Example: ayadn set count unified 100
1503
+ Example: `ayadn set count unified 100`
955
1504
  \n\n
956
1505
  USAGE
957
1506
  end
@@ -961,11 +1510,9 @@ module Ayadn
961
1510
 
962
1511
  Examples:
963
1512
 
964
- ayadn set nicerank filter true
1513
+ `ayadn set nicerank filter true`
965
1514
 
966
- ayadn set nicerank filter_unranked true
967
-
968
- ayadn set nicerank threshold 2.1
1515
+ `ayadn set nicerank threshold 2.1`
969
1516
  \n\n
970
1517
  USAGE
971
1518
  end
@@ -973,7 +1520,7 @@ module Ayadn
973
1520
  <<-USAGE
974
1521
  Sets back the configuration to default values.
975
1522
 
976
- ayadn set defaults
1523
+ `ayadn set defaults`
977
1524
  \n\n
978
1525
  USAGE
979
1526
  end
@@ -983,17 +1530,15 @@ module Ayadn
983
1530
 
984
1531
  Usage:
985
1532
 
986
- ayadn alias list
987
-
988
- ayadn -A list
1533
+ `ayadn alias list`
989
1534
 
990
- ayadn -A create 33666 my_alias
1535
+ `ayadn -A list`
991
1536
 
992
- ayadn -A delete my_alias
1537
+ `ayadn -A create 33666 my_alias`
993
1538
 
994
- ayadn -A import '/Users/blah/backups/aliases.db'
1539
+ `ayadn -A delete my_alias`
995
1540
 
996
- (Once an alias is set, you can display the messages in this channel with 'ayadn -ms my_alias', post to it with 'ayadn -C my_alias', etc)
1541
+ (Once an alias is set, you can display the messages in this channel with `ayadn -ms my_alias`, post to it with `ayadn -C my_alias`, etc)
997
1542
  \n\n
998
1543
  USAGE
999
1544
  end
@@ -1003,11 +1548,11 @@ module Ayadn
1003
1548
 
1004
1549
  Usage:
1005
1550
 
1006
- ayadn alias create 33666 my_alias
1551
+ `ayadn alias create 33666 my_alias`
1007
1552
 
1008
- ayadn -A create 33666 my_alias
1553
+ `ayadn -A create 33666 my_alias`
1009
1554
 
1010
- (Once an alias is set, you can display the messages in this channel with 'ayadn -ms my_alias', post to it with 'ayadn -C my_alias', etc)
1555
+ (Once an alias is set, you can display the messages in this channel with `ayadn -ms my_alias`, post to it with `ayadn -C my_alias`, etc)
1011
1556
  \n\n
1012
1557
  USAGE
1013
1558
  end
@@ -1017,21 +1562,9 @@ module Ayadn
1017
1562
 
1018
1563
  Usage:
1019
1564
 
1020
- ayadn alias delete my_alias
1021
-
1022
- ayadn -A delete my_alias
1023
- \n\n
1024
- USAGE
1025
- end
1026
- def self.alias_import
1027
- <<-USAGE
1028
- Imports an aliases database from a backed up Ayadn account.
1029
-
1030
- Usage:
1031
-
1032
- ayadn alias import '/Users/blah/ayadn/blah/db/aliases.db'
1565
+ `ayadn alias delete my_alias`
1033
1566
 
1034
- ayadn -A import '/Users/blah/backups/aliases.db'
1567
+ `ayadn -A delete my_alias`
1035
1568
  \n\n
1036
1569
  USAGE
1037
1570
  end
@@ -1041,9 +1574,13 @@ module Ayadn
1041
1574
 
1042
1575
  Usage:
1043
1576
 
1044
- ayadn alias list
1577
+ `ayadn alias list`
1578
+
1579
+ `ayadn -A list`
1580
+
1581
+ Force compact view :
1045
1582
 
1046
- ayadn -A list
1583
+ `ayadn -A list -k`
1047
1584
  \n\n
1048
1585
  USAGE
1049
1586
  end
@@ -1053,11 +1590,9 @@ module Ayadn
1053
1590
 
1054
1591
  Usage:
1055
1592
 
1056
- ayadn download 23344556
1593
+ `ayadn download 23344556`
1057
1594
 
1058
- ayadn -df 23344556
1059
-
1060
- (you can list your files with 'ayadn -fl')
1595
+ `ayadn -df 23344556`
1061
1596
  \n\n
1062
1597
  USAGE
1063
1598
  end
@@ -1067,15 +1602,15 @@ module Ayadn
1067
1602
 
1068
1603
  Usage:
1069
1604
 
1070
- ayadn mark add 30594331
1605
+ `ayadn mark add 30594331`
1071
1606
 
1072
- ayadn mark add 30594331 convo_name
1607
+ `ayadn mark add 30594331 convo_name`
1073
1608
 
1074
- ayadn mark list
1609
+ `ayadn mark list`
1075
1610
 
1076
- ayadn mark delete 30594331
1611
+ `ayadn mark delete 30594331`
1077
1612
 
1078
- ayadn mark rename 'convo name' 'other name'
1613
+ `ayadn mark rename 'convo name' 'other name'`
1079
1614
  \n\n
1080
1615
  USAGE
1081
1616
  end
@@ -1085,9 +1620,9 @@ module Ayadn
1085
1620
 
1086
1621
  Usage:
1087
1622
 
1088
- ayadn mark add 30594331
1623
+ `ayadn mark add 30594331`
1089
1624
 
1090
- ayadn mark add 30594331 'title'
1625
+ `ayadn mark add 30594331 'title'`
1091
1626
 
1092
1627
  You don't have to specify the root post of the conversation, any post within the thread will work.
1093
1628
  \n\n
@@ -1099,7 +1634,11 @@ module Ayadn
1099
1634
 
1100
1635
  Usage:
1101
1636
 
1102
- ayadn mark list
1637
+ `ayadn mark list`
1638
+
1639
+ Force compact view :
1640
+
1641
+ `ayadn mark list -k`
1103
1642
  \n\n
1104
1643
  USAGE
1105
1644
  end
@@ -1109,7 +1648,7 @@ module Ayadn
1109
1648
 
1110
1649
  Usage:
1111
1650
 
1112
- ayadn mark delete 30594331
1651
+ `ayadn mark delete 30594331`
1113
1652
  \n\n
1114
1653
  USAGE
1115
1654
  end
@@ -1119,7 +1658,7 @@ module Ayadn
1119
1658
 
1120
1659
  Usage:
1121
1660
 
1122
- ayadn mark rename 30594331 'new title'
1661
+ `ayadn mark rename 30594331 'new title'`
1123
1662
  \n\n
1124
1663
  USAGE
1125
1664
  end
@@ -1129,25 +1668,23 @@ module Ayadn
1129
1668
 
1130
1669
  Usage:
1131
1670
 
1132
- ayadn blacklist list
1671
+ `ayadn blacklist list`
1133
1672
 
1134
- ayadn -K list
1673
+ `ayadn -K list`
1135
1674
 
1136
- ayadn -K add mention @shmuck
1675
+ `ayadn -K add mention @shmuck`
1137
1676
 
1138
- ayadn blacklist add hashtag sports
1677
+ `ayadn -K add hashtag sports`
1139
1678
 
1140
- ayadn -K add client IFTTT
1679
+ `ayadn -K add client IFTTT`
1141
1680
 
1142
- ayadn -K add client 'Spammy Unknown Client'
1681
+ `ayadn -K add client 'Spammy Unknown Client'`
1143
1682
 
1144
- ayadn blacklist remove mention @shmuck
1683
+ `ayadn -K remove mention @shmuck`
1145
1684
 
1146
- ayadn -K remove hashtag sports
1685
+ `ayadn -K remove hashtag sports`
1147
1686
 
1148
- ayadn -K remove client IFTTT
1149
-
1150
- ayadn -K import '/Users/blah/backups/blacklist.db'
1687
+ `ayadn -K remove client IFTTT`
1151
1688
  \n\n
1152
1689
  USAGE
1153
1690
  end
@@ -1159,15 +1696,15 @@ module Ayadn
1159
1696
 
1160
1697
  Usage:
1161
1698
 
1162
- ayadn blacklist add mention @shmuck
1699
+ `ayadn blacklist add mention @shmuck`
1163
1700
 
1164
- ayadn -K add mention @shmuck
1701
+ `ayadn -K add mention @shmuck`
1165
1702
 
1166
- ayadn -K add hashtag sports
1703
+ `ayadn -K add hashtag sports`
1167
1704
 
1168
- ayadn -K add client IFTTT
1705
+ `ayadn -K add client IFTTT`
1169
1706
 
1170
- ayadn -K add client 'Spammy Unknown Client'
1707
+ `ayadn -K add client 'Spammy Unknown Client'`
1171
1708
  \n\n
1172
1709
  USAGE
1173
1710
  end
@@ -1179,37 +1716,13 @@ module Ayadn
1179
1716
 
1180
1717
  Usage:
1181
1718
 
1182
- ayadn blacklist remove mention @shmuck
1183
-
1184
- ayadn -K remove mention @shmuck
1185
-
1186
- ayadn -K remove hashtag sports
1187
-
1188
- ayadn -K remove client IFTTT
1189
- \n\n
1190
- USAGE
1191
- end
1192
- def self.blacklist_import
1193
- <<-USAGE
1194
- Imports a blacklist database from another Ayadn account.
1195
-
1196
- Usage:
1197
-
1198
- ayadn blacklist import '/Users/blah/ayadn/blah/db/blacklist.db'
1199
-
1200
- ayadn -K import '/Users/blah/backups/blacklist.db'
1201
- \n\n
1202
- USAGE
1203
- end
1204
- def self.blacklist_convert
1205
- <<-USAGE
1206
- Convert your current blacklist database to the new format. Useful if you used the blacklist command prior to Ayadn 10.0.13.
1719
+ `ayadn blacklist remove mention @shmuck`
1207
1720
 
1208
- Usage:
1721
+ `ayadn -K remove mention @shmuck`
1209
1722
 
1210
- ayadn blacklist convert
1723
+ `ayadn -K remove hashtag sports`
1211
1724
 
1212
- ayadn -K convert
1725
+ `ayadn -K remove client IFTTT`
1213
1726
  \n\n
1214
1727
  USAGE
1215
1728
  end
@@ -1219,9 +1732,13 @@ module Ayadn
1219
1732
 
1220
1733
  Usage:
1221
1734
 
1222
- ayadn blacklist list
1735
+ `ayadn blacklist list`
1736
+
1737
+ `ayadn -K list`
1223
1738
 
1224
- ayadn -K list
1739
+ Force compact view :
1740
+
1741
+ `ayadn -K list -k`
1225
1742
  \n\n
1226
1743
  USAGE
1227
1744
  end
@@ -1233,15 +1750,27 @@ module Ayadn
1233
1750
 
1234
1751
  Usage with iTunes (Mac Os X only):
1235
1752
 
1236
- ayadn nowplaying
1753
+ `ayadn nowplaying`
1237
1754
 
1238
- ayadn -np
1755
+ `ayadn -NP`
1239
1756
 
1240
1757
  Usage with Last.fm:
1241
1758
 
1242
- ayadn nowplaying -l
1759
+ `ayadn nowplaying -l`
1760
+
1761
+ `ayadn -NP -l`
1762
+
1763
+ Specify a custom hashtag:
1243
1764
 
1244
- ayadn -np -l
1765
+ `ayadn -NP -h listeningto`
1766
+
1767
+ Specify a custom text:
1768
+
1769
+ `ayadn -NP -t "I loved this song so much when I was young."`
1770
+
1771
+ Don't resolve the names (ignores iTunes Store):
1772
+
1773
+ `ayadn -NP -n`
1245
1774
  \n\n
1246
1775
  USAGE
1247
1776
  end
@@ -1251,39 +1780,29 @@ module Ayadn
1251
1780
 
1252
1781
  Usage:
1253
1782
 
1254
- ayadn movie ghost in the shell
1255
-
1256
- ayadn movie existenz
1257
-
1258
- ayadn -NW beetlejuice
1783
+ `ayadn movie ghost in the shell`
1259
1784
 
1260
- (shortcut is 'NW' because of 'nowwatching')
1785
+ `ayadn -NW beetlejuice`
1261
1786
 
1262
1787
  If the movie is not the one you're looking for, you can specify the 'alt' option to force find an alternative.
1263
1788
 
1264
1789
  This is useful for remakes:
1265
1790
 
1266
- ayadn -NW solaris
1791
+ `ayadn -NW solaris`
1267
1792
 
1268
1793
  (gives the 2002 version)
1269
1794
 
1270
- ayadn -NW solaris --alt
1795
+ `ayadn -NW solaris --alt`
1271
1796
 
1272
1797
  (gives the 1972 version)
1273
1798
 
1274
- Aliases:
1275
-
1276
- ayadn nowwatching godfather II
1277
-
1278
- ayadn imdb -a conan
1279
-
1280
1799
  Hashtag:
1281
1800
 
1282
- You can modify the hashtag with 'set':
1801
+ You can modify the default hashtag with 'set':
1283
1802
 
1284
- ayadn set movie hashtag movietime
1803
+ `ayadn set movie hashtag movietime`
1285
1804
 
1286
- ayadn set movie hashtag adnmovieclub
1805
+ `ayadn set movie hashtag adnmovieclub`
1287
1806
 
1288
1807
  (default is 'nowwatching')
1289
1808
  \n\n
@@ -1295,29 +1814,27 @@ module Ayadn
1295
1814
 
1296
1815
  Usage:
1297
1816
 
1298
- ayadn tvshow magnum
1817
+ `ayadn tvshow magnum`
1299
1818
 
1300
- ayadn tvshow game of thrones
1301
-
1302
- ayadn -TV 24
1819
+ `ayadn -TV game of thrones`
1303
1820
 
1304
1821
  If the show is not the one you're looking for, you can specify the 'alt' option to force find an alternative.
1305
1822
 
1306
- ayadn -TV whose line
1823
+ `ayadn -TV whose line`
1307
1824
 
1308
1825
  (gives the US version)
1309
1826
 
1310
- ayadn -TV whose line --alt
1827
+ `ayadn -TV whose line --alt`
1311
1828
 
1312
1829
  (gives the UK version)
1313
1830
 
1314
1831
  Hashtag:
1315
1832
 
1316
- You can modify the hashtag with 'set':
1833
+ You can modify the default hashtag with 'set':
1317
1834
 
1318
- ayadn set tvshow hashtag showtime
1835
+ `ayadn set tvshow hashtag showtime`
1319
1836
 
1320
- ayadn set tvshow hashtag tvshow
1837
+ `ayadn set tvshow hashtag tvshow`
1321
1838
 
1322
1839
  (default is 'nowwatching')
1323
1840
 
@@ -1325,9 +1842,7 @@ module Ayadn
1325
1842
 
1326
1843
  Use the `--banner` (-b) options to insert a banner instead of a poster:
1327
1844
 
1328
- ayadn -TV magnum --banner
1329
-
1330
- ayadn -TV -b magnum
1845
+ `ayadn -TV magnum --banner`
1331
1846
  \n\n
1332
1847
  USAGE
1333
1848
  end
@@ -1337,13 +1852,13 @@ module Ayadn
1337
1852
 
1338
1853
  Usage:
1339
1854
 
1340
- ayadn random
1855
+ `ayadn random`
1341
1856
 
1342
- ayadn -rnd
1857
+ `ayadn -rnd`
1343
1858
 
1344
- With 'wait 2 seconds' option:
1859
+ With 'wait 30 seconds' option:
1345
1860
 
1346
- ayadn -rnd -w2
1861
+ `ayadn -rnd -w30`
1347
1862
  \n\n
1348
1863
  USAGE
1349
1864
  end
@@ -1353,9 +1868,11 @@ module Ayadn
1353
1868
 
1354
1869
  Usage:
1355
1870
 
1356
- ayadn authorize
1871
+ `ayadn authorize`
1872
+
1873
+ `ayadn -auth`
1357
1874
 
1358
- ayadn -auth
1875
+ `ayadn -AU`
1359
1876
 
1360
1877
  Ayadn will give you a link to an App.net login page.
1361
1878
 
@@ -1365,19 +1882,35 @@ module Ayadn
1365
1882
  \n\n
1366
1883
  USAGE
1367
1884
  end
1885
+ def self.unauthorize
1886
+ <<-USAGE
1887
+ Unauthorize an Ayadn account.
1888
+
1889
+ Usage:
1890
+
1891
+ `ayadn unauthorize @ericd`
1892
+
1893
+ `ayadn -UA @ericd`
1894
+
1895
+ You can specify the `--delete` (`-D`) option to force delete the account folders:
1896
+
1897
+ `ayadn -UA -D @ericd`
1898
+ \n\n
1899
+ USAGE
1900
+ end
1368
1901
  def self.switch
1369
1902
  <<-USAGE
1370
1903
  Switch between already authorized App.net accounts.
1371
1904
 
1372
1905
  Usage:
1373
1906
 
1374
- ayadn switch @myotheraccount
1907
+ `ayadn switch @myotheraccount`
1375
1908
 
1376
- ayadn -@ myotheraccount
1909
+ `ayadn -@ myotheraccount`
1377
1910
 
1378
1911
  List your authorized accounts:
1379
1912
 
1380
- ayadn -@ -l
1913
+ `ayadn -@ -l`
1381
1914
  \n\n
1382
1915
  USAGE
1383
1916
  end
@@ -1385,11 +1918,25 @@ module Ayadn
1385
1918
  <<-USAGE
1386
1919
  Auto post every line of input.
1387
1920
 
1921
+ `ayadn auto`
1922
+
1388
1923
  In this mode, each line you type (each time you hit ENTER!) is automatically posted to ADN.
1389
1924
 
1390
1925
  Hit CTRL+C to exit this mode at any moment.
1391
1926
  \n\n
1392
1927
  USAGE
1393
1928
  end
1929
+ def self.migrate
1930
+ <<-USAGE
1931
+ This command migrates an Ayadn 1.x account to the new 2.x format.
1932
+
1933
+ This is an hidden command (doesn't show in the commands menu).
1934
+
1935
+ You should only use this command once, when asked by Ayadn.
1936
+
1937
+ `ayadn migrate`
1938
+ \n\n
1939
+ USAGE
1940
+ end
1394
1941
  end
1395
1942
  end