-
Notifications
You must be signed in to change notification settings - Fork 7
/
TODO.txt
50 lines (37 loc) · 1.71 KB
/
TODO.txt
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
# from triton
- The 'shortcut' commands use `handlerFromSubcmd(...).dispatch`. That
doesn't run the subcmd class's `.init()` method. node-cmdln should provide
a way to do this. ... basically want to call the *main()* but with preparsed
options. Perhaps the init/fini should move into dispatch?
# errHelp
- follow up ticket for '-E' or something:
* - a concern with following errHelp output is that you cannot use the last
* lines for parsing error output. Want a `triton -E` or similar (see
* imgadm optionfor this) for parsable JSON last error line.
Some fields that might be nice to have on this summary line:
argv: original argv
err: if there was an error, details here: message, code, stack
exitStatus
elapsedS
# bash completion
Some thoughts. See `npm completion` for some inspiration.
- Having dashdash option types of 'path', 'file', 'dir' that were basically just
completion type annotations on regular 'str' might be helpful.
- Need/want type annotations on the args. Then node-manta would want to provide
special completion handling for "mantaPath" type.
- Ultimately want a fallback to custom control via a `Cmdln.do_foo.completion`.
- dashdash itself should provide option completion to support bash completion
simple commands
# other
- doc helpOpts, helpBody, etc.
- tests and docs for _ -> - translation in sub-command names
- doc `init` usage (--version example). Doc `this.opts` for global parsed
opts.
- doc `return callback(false)` ?
- doc showErrInfo
- update README for current usage
- make do_help optional (see helpCmd in ctor)
- `debug: true` option to ctor for the debug logging
- test with imgadm, imgapi-cli
# someday/maybe
- interactive shell (a la cmdln.py)