-
Notifications
You must be signed in to change notification settings - Fork 0
/
Changes
418 lines (202 loc) · 9.12 KB
/
Changes
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
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
Revision history for Perinci-CmdLine
0.51 2012-06-22 (SHARYANTO)
[ENHANCEMENTS]
- Don't use transactions when dry run, so transaction list is not full
with dry run calls.
0.50 2012-06-22 (SHARYANTO)
[ENHANCEMENTS]
- Interpret --dry-run (or environment DRY_RUN=1) and pass -dry_run=>1
to functions that have the dry_run feature.
- Don't treat 304 status as error (still return exit code 0).
0.49 2012-06-22 (SHARYANTO)
[ENHANCEMENTS]
- Implement undo (--undo, --redo, --history, --clear-history).
0.48 2012-06-15 (SHARYANTO)
[ENHANCEMENTS]
- Add module: Perinci::CmdLine::Easy
0.47 2012-04-03 (SHARYANTO)
[FIXES]
- Better handle case when common options like --help, --list, --version
clash with function arguments with the same name. Now the behavior is
to invoke common action (like help, version), unless
--action=subcommand is specified, where it will set function
arguments instead. Note that this is a non-issue when none of the
function arguments happen to have names of 'help', 'list', 'version',
etc.
0.46 2012-03-30 (SHARYANTO)
No functional changes. Fix typo.
0.45 2012-03-30 (SHARYANTO)
[REFACTORING]
- Split formatting to Perinci::Result::Format (in Perinci dist).
[INCOMPATIBLE CHANGE]
- Rename --pretty (-p) and --nopretty (-P) to --text-pretty and
--text-simple.
0.44 2012-03-29 (SHARYANTO)
[ENHANCEMENTS]
- Make it easy to add more output formats: added --format and formats()
attribute.
[INCOMPATIBLE CHANGE]
- --json now outputs compact JSON instead of pretty ones. To
pretty-print the output one can pipe it to a formatter program.
[FIXES]
- Bash completion: list of common options was incomplete (but we still
can't complete common option's value like --format <tab>).
0.43 2012-03-23 (SHARYANTO)
[ENHANCEMENTS]
- Show default argument value in --help message.
0.42 2012-03-16 (SHARYANTO)
[ENHANCEMENTS]
- Localized/translatable messages. English and Indonesian included.
- Read environment variable PERINCI_CMDLINE_PROGRAM_NAME.
- peri-run: Accept --subcommand (-s) to specify subcommands.
- Allow choosing PAGER via result metadata key 'cmdline.pager'.
0.41 2012-03-08 (SHARYANTO)
[BUG FIXES]
- Fix do not empty envelope when 'cmdline.display_result' is false.
0.40 2012-03-08 (SHARYANTO)
[INCOMPATIBLE CHANGES]
- Observe function result metadata: 'cmdline.display_result' (no longer
observe 'cmdline.result_importance').
[ENHANCEMENTS]
- Observe function result metadata: 'cmdline.page_result' to send
result to PAGER.
0.39 2012-03-03 (SHARYANTO)
[ENHANCEMENTS]
- Add short options for --yaml (-y), --json (-j), --pretty (-p),
and --nopretty (-P).
- Observe function result metadata: 'cmdline.result_importance' (if set
to 'low', won't display result).
[FIXES]
- Common options (like --yaml, --help, -l) now won't override options
for function arguments of the same name.
[REMOVED]
- Remove support for PHP serialization output (will be re-added later
via --format, which can use any Data::Format::Pretty::* module).
0.38 2012-02-23 (SHARYANTO)
Rename distribution from Sub-Spec-CmdLine to Perinci-CmdLine. Now
Rinci/Riap-based (transparent remote access). Refactor into OO. Some
features missing for now. Tests not updated yet.
0.37 2012-01-20 (SHARYANTO)
No functional changes. Mark deprecation.
0.36 2011-08-25 (SHARYANTO)
No functional changes. gen_usage() split to its own dist:
Sub-Spec-To-Text. Update to Sub::Spec 0.15.
0.35 2011-08-11 (SHARYANTO)
Uses Data::Format::Pretty for result formatting. JSON output is now
pretty-printed by default.
0.34 2011-08-03 (SHARYANTO)
No functional changes. Fixed test script to adjust to new
Object::BlankStr [CT]. Updated dependencies.
0.33 2011-07-26 (SHARYANTO)
[INCOMPATIBLE CHANGES]
Refactoring: move parse_argv() to
Sub::Spec::GetArgs::Argv::get_args_from_argv().
[ENHANCEMENTS]
Localize Getopt::Long::Configure() effect.
0.32 2011-07-10 (SHARYANTO)
[BUG FIXES]
* runpm: fix -I.
0.31 2011-07-10 (SHARYANTO)
[ENHANCEMENTS]
* bin/runpm: add --help (-h) and -I (--library) options.
* run(): add dash_to_underscore option to allow subcommands using
dashes instead of underscores.
0.30 2011-06-05 (SHARYANTO)
[INCOMPATIBLE CHANGES]
* To reduce the trap of implicit YAML parsing, parsing is only done for
nonscalar arguments.
0.29 2011-06-01 (SHARYANTO)
No functional changes.
[ETC]
- Update to latest version of Sub::Spec::Runner.
0.28 2011-04-14 (SHARYANTO)
[BUG FIXES]
- Remove extra name line in usage message.
0.27 2011-04-14 (SHARYANTO)
[ENHANCEMENTS]
- run(): For convenience, allow general options (e.g. --version,
--help, --json, etc) to be specified after subcommand name, if it
doesn't collide with spec arg
[ETC]
- Replace Clone::Any with Data::Clone (Clone::Any fallbacks to Storable
which doesn't support storing Regexp, so tests will fail if Clone is
not available).
0.26 2011-03-04 (SHARYANTO)
Require Sub::Spec::Runner 0.09.
0.25 2011-02-28 (SHARYANTO)
On non-success response from sub, print output (error message) even if
spec enables cmdline_suppress_output.
0.24 2011-02-28 (SHARYANTO)
Now based on Sub::Spec::Runner for dependency checking before run.
0.23 2011-02-23 (SHARYANTO)
Fix dependency (Sub::Spec version).
Don't add error message when Getopt::Long already prints to stderr.
0.22 2011-02-22 (SHARYANTO)
Use Sub::Spec::Utils.
0.21 2011-02-21 (SHARYANTO)
Add some more documentation.
Requires recent versions of Test::More & Sub::Spec::BashComplete.
0.20 2011-02-18 (SHARYANTO)
Escape completion output since BashComplete now doesn't.
Added some doc.
0.19 2011-02-18 (SHARYANTO)
Provide runpm script.
0.18 2011-02-18 (SHARYANTO)
run(): More fixes for completion.
spec: cmdline_aliases is renamed to arg_aliases.
Fix test [CT].
0.17 2011-02-17 (SHARYANTO)
run(): Fixed stupid parenthesis bug.
0.16 2011-02-17 (SHARYANTO)
run(): A couple more fixes for bash completion.
parse_argv(): Also add --nofoo for bool cmdline_aliases.
0.15 2011-02-17 (SHARYANTO)
Yet more fixes for bash completion.
Fixed: parse_argv(): do not convert all remaining $argv to YAML so they
can be reused (e.g. parse_argv'd) again
run(): add option 'custom_completer' to pass to
Sub::Spec::BashComplete.
0.14 2011-02-17 (SHARYANTO)
Fixes for bash completion.
0.13 2011-02-17 (SHARYANTO)
[INCOMPATIBLE CHANGES]
run(): rename 'require' argument to 'load'.
[IMPROVEMENTS]
parse_argv(): Respect arg spec: 'cmdline_aliases' for specifying
option aliases.
run(): Allow 'subcommands' argument to be coderef.
run(): Pass more info (arguments) to coderef 'help' argument.
run(): Add option 'allow_unknown_args' for non-strict argv parsing.
gen_usage(): Add option: 'options_name'.
0.12 2011-02-16 (SHARYANTO)
Fixes for bash completion.
Add arguments to run(): help, spec, run, per-subcommand category.
Other bug fixes.
0.11 2011-02-16 (SHARYANTO)
Add support for bash completion (requires Sub::Spec::BashComplete).
0.10 2011-02-16 (SHARYANTO)
Add strict=>0 option in parse_argv(), for use by
Sub::Spec::BashComplete.
Some small refactoring.
0.09 2011-02-15 (SHARYANTO)
Add --version.
0.08 2011-02-15 (SHARYANTO)
Fixes for subcommands support.
Respect spec clause: cmdline_suppress_output.
0.07 2011-02-11 (SHARYANTO)
Formatting fix: missing newline in error message.
0.06 2011-02-11 (SHARYANTO)
Add 'cmd' option to gen_usage().
Formatting tweaks.
0.05 2011-02-11 (SHARYANTO)
Remove 'required_args'.
0.04 2011-02-10 (SHARYANTO)
Formatting fixes.
0.03 2011-02-10 (SHARYANTO)
Formatting tweaks.
Fix schema clause ('in', not 'choices').
0.02 2011-02-09 (SHARYANTO)
Incompatible change: rename arg_order to arg_pos.
Documentation.
0.01 2011-02-09 (SHARYANTO)
First release.