cmdr
Timeline
Not logged in
Bounty program for improvements to Tcl and certain Tcl packages.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

126 check-ins using file tests/officer.tests version 9763fbc353

2014-02-06
05:35
Added utility package cmdr::help::tcl, dumping the help as Tcl data structure. Like cmdr::help::json, with less overhead to read into other Tcl code. check-in: 865912b8d9 user: aku tags: trunk
05:05
Fixed problems with the generation of categorized help when encountering sections with sub-sections, but no commands check-in: 11fff41159 user: aku tags: trunk
05:04
officer - Modified method extend to return the new command instance, for dynamic re-configuration post-creation. check-in: 7fc0be3870 user: aku tags: trunk
2014-01-30
18:09
Fixed command scope problems in "extend". check-in: f1bb89c324 user: andreask tags: trunk
18:09
Fixed missing initialization in the main help generator. check-in: 3a146bdf51 user: andreask tags: trunk
2014-01-13
21:03
Fixed buglet in the help setup. Add the main (root) name to the command prefix when not in a cli shell. Bumped cmdr::help to version 1.0.1. check-in: 60dbdef1b0 user: andreask tags: trunk
2013-12-18
20:29
Fix broken requirements cmdr::help::json and *::sql. Were not updated to v1. check-in: d46922cc52 user: andreask tags: trunk
2013-12-02
17:44
Version bumped to 1.0. Regenerated docs. check-in: 2e15301ff5 user: aku tags: cmdr-1-0, release, release-1-0, trunk, v1.0
2013-11-30
02:34
Regenerated embedded docs. check-in: e0642cf6ae user: aku tags: trunk
2013-11-29
19:36
Added early mention and reference to custom validation types and help formats to the main intro check-in: 1a9bcfb664 user: andreask tags: trunk
06:41
Image tweak, regenerated embedded. check-in: f244dccfb4 user: aku tags: trunk
2013-11-28
23:59
Link from intro to dsl intro, starting the chain through dsl and flow. check-in: 4e1cb948ac user: andreask tags: trunk
22:35
Moved old docs into an attic. Completed the todos, except very minor parts. Includes backend example, reserved blocks. Added, completed DSL informaton, mainly where to find them, and how DSL commands map to methods. check-in: eed0701b51 user: andreask tags: trunk
19:21
Added docs for the flow at runtime. Documented some of the reserved common blocks. check-in: 6b1f531bbb user: andreask tags: trunk
05:39
Another round of tweaking labels for nicer sorting. check-in: df97aa496f user: aku tags: trunk
05:23
Moved document labeling (for toc, and sorting it) into definition. Tweaked labels to put internals at the end, intro and such at the top. Regenerated embedded docs. check-in: 15ea908829 user: aku tags: trunk
04:16
Fixed help docs. Completed sequence figures, command-completion docs. check-in: 3359a9b2c8 user: aku tags: trunk
2013-11-27
19:23
Extended information about help formats and how to write them. Documented the DSL "section" command. check-in: f30dbe0098 user: andreask tags: trunk
18:25
Added back-references from packages to the devguide for command-line completion. check-in: f7695638e8 user: andreask tags: trunk
07:55
Continued the dev-guide in general, and completion internals in particular. Added draft diagram code for sequence diagrams. Snarfed from my 2012 kinetcl paper. Has to be modded for the completions. Todo: Document standard help formats, and how to write formats. Todo: Back-reference from the package docs to the completion internals. check-in: 5a6408a944 user: aku tags: trunk
01:15
Draft work on internal workings of the command line completion. check-in: a1c106f24e user: andreask tags: trunk
2013-11-26
05:34
Tweaked documented titles for better marking of internals. Fixed a few issues with validation types, mainly shuffling text blocks around, plus fix in API documentation. check-in: dbd259771b user: aku tags: trunk
05:17
Continued work on the dev guide. Complete architecture and package dependency information. Regenerated figures and embedded documentation. check-in: e33e0f5b2d user: aku tags: trunk
00:32
Continued documentation work, first fillings for the dev-guide, more figures. check-in: 172951e9a3 user: andreask tags: trunk
2013-11-22
20:52
Modified officers. Auto-create an 'exit'-command, if not in conflict with user commands. Method as backend for private. Usable by others as well. Bumped version to 0.14. check-in: 8d7fcadf53 user: andreask tags: trunk
2013-11-17
01:01
Added a behaviour flag "no-promote" to parameters, to allow rejection of promotion of unknown flag strings to input values on principle. Bumped version to 0.13, updated embedded documentation. check-in: b9126a7a27 user: aku tags: trunk
2013-11-16
23:15
Moved dictsort utility into util for wider use. Sort parts of the help structures for easier testing. Fixed bugs in the help generation (1) Skip imported helper commands which are not formats. (2) Rendering of list inputs was off. -- Bumped version to 0.12, help (json, sql) to 0.2, fixed requirements -- Updated embedded documentation. check-in: 0ed8f3610b user: aku tags: trunk
2013-11-15
23:10
Extended the shells to note their activity in a root common block named *in-shell*. Bumped version to 0.11. check-in: 5a480bf9d8 user: andreask tags: trunk
07:41
Completed the split of the DSL documents. Regenerated the embedded docs. check-in: b7d756fe00 user: aku tags: trunk
00:51
Split the large DSL document into several smaller pieces: introduction, officer, private, parameter check-in: daa000e429 user: andreask tags: trunk
00:31
Updated embedded documentation check-in: 9223d03cfb user: aku tags: trunk
2013-11-14
23:37
DSL docs mostly complete. Still possible to split into multiple documents. Still to do related docs on execution flow. check-in: df9e5b0c47 user: andreask tags: trunk
20:06
Outline of the DSL docs, plus fixing up the references to it. check-in: cf3f9e2ff9 user: andreask tags: trunk
17:45
Fixed missing module description (config setting) check-in: 39b36bc1a3 user: andreask tags: trunk
17:27
Updated embedded documentation check-in: 53634ad6ba user: aku tags: trunk
2013-11-13
23:33
Filled in the main package documentation (framework entrypoint) check-in: 5e924d81b9 user: andreask tags: trunk
22:44
Filled the officer documentation, and tweaked privates a bit. check-in: 65c018615d user: andreask tags: trunk
2013-11-05
05:55
Updated embedded documentation check-in: ca14a9b8c1 user: aku tags: trunk
00:40
Another placeholder, for the DSL spec, and filled out actor reference check-in: 67f83ccddb user: andreask tags: trunk
2013-11-04
22:45
Moved all title setup into definitions. check-in: d1574f44fb user: andreask tags: trunk
22:45
Added placeholders for missing reference docs check-in: 89659bfd6c user: andreask tags: trunk
22:44
Filled out docs for cmdr::config check-in: 2bb154df7f user: andreask tags: trunk
17:38
Reworked the interaction for entry of scalar, and general calculation of the value - Show validation error message for proper feedback - Trap ^C properly, as done for the list-case already. Scalar was forgotten. - Report the ^C as 'undefined value' - Remember the undefined-ness and have additional attempts to retrieve the value abort early This prevents retries of computing the value where we cannot succeed. It also prevents additional attempts at interaction. Bumped version to 0.10. check-in: d2a2bc511f user: andreask tags: trunk
2013-11-03
07:18
Updated embedded documentation check-in: b4bc5bcb6e user: aku tags: trunk
2013-11-01
22:52
Near completed parameter documentation. check-in: c1ba65f517 user: andreask tags: trunk
2013-10-31
23:22
Start the parameter documentation check-in: fc5d203228 user: andreask tags: trunk
00:48
Fix oops, forgotten update of by-category for the new helper procedures. check-in: 0a71af63c2 user: andreask tags: trunk, v0.9
00:43
Extended the json format with better section information, and outer structure. Version bumped to 0.9 check-in: a190c9c157 user: andreask tags: trunk
2013-10-29
16:31
Incomplete [d04e732ab1], extended the config, missed the help code :(. Now fixed. check-in: f453a7ed65 user: andreask tags: trunk, v0.8
05:45
Bumped package versions to 0.8 check-in: a0fad5ad9d user: aku tags: trunk
05:44
Extended the json help format with a map "opt2para" from options to controlling parameter (name to name). check-in: d04e732ab1 user: aku tags: trunk
05:40
Put section information into the json format. check-in: c0c62eb8c0 user: aku tags: trunk
05:35
Regenerated embedded documentation. check-in: 828eb35b6d user: aku tags: trunk
2013-10-25
23:24
Mostly done documentation of cmdr::private. check-in: 807f15f3f9 user: andreask tags: trunk
18:24
Filled out docs for validation types. check-in: fbca18b815 user: andreask tags: trunk
00:20
Started to fill in validation type documentation. check-in: 6f2d2b4c21 user: andreask tags: trunk
00:19
Properly export the path validation types. check-in: 745978d8ff user: andreask tags: trunk
2013-10-23
04:58
Added first manpages, for the utility packages (util, vcommon, help*). check-in: b1fbdec2c5 user: aku tags: trunk
2013-10-21
21:55
Continued filling out the cmdr requirements. check-in: 4bacb86a2f user: andreask tags: trunk
21:36
Filled out the basic changelog, and extended the set of requirements. check-in: 714b81acaf user: andreask tags: trunk
21:07
Outline of cmdr documentation, generated via kettle's experimental doc-templating branch/work. check-in: 1dd5f2baba user: andreask tags: trunk
2013-10-18
18:32
Added kettle repository references to the build code. check-in: 3ffaa05e81 user: andreask tags: trunk
00:30
Bumped cmdr version to 0.7 check-in: b2ff231a4e user: andreask tags: trunk
00:30
Fix internal help usage, bug due to internal API change by [465f1bd7c6] and not updating all users. check-in: 3e6bd33d6d user: andreask tags: trunk
2013-10-17
18:17
Bumped cmdr version to 0.6 check-in: e3e822290d user: andreask tags: trunk
18:16
Tweaked the formatting of arguments in the generated help. check-in: fe780034dd user: andreask tags: trunk
2013-10-16
19:21
Bumped cmdr version to 0.5 check-in: 41becb3194 user: andreask tags: trunk
19:20
Extended DSL for privates with command to record category/section information for help. Extended the help system with a by-category format, and made it default when not looking for a specific command. ATTENTION: The API between help core and formats did change, the root actor of the command tree is now supplied. New common block *category-order* to declare a bespoke ordering of categories. check-in: 465f1bd7c6 user: andreask tags: trunk
17:06
Fixed bug in lappend for common blocks. Was not appending, but overwriting with last :( check-in: e8833211e0 user: andreask tags: trunk
2013-10-15
23:46
Tweaked the auto-help command. Default to full format only when asking for a specific command, otherwise default to a simple list. check-in: f4a5130c2e user: andreask tags: trunk
2013-09-23
20:11
Added missing normalization of boolean values by its validation type. check-in: fa1b9689aa user: andreask tags: trunk
2013-09-18
19:24
Tweaked help system. Added option "--width" enabling explicit control of the line width to format for. Default via "linenoise columns". check-in: b53665eee8 user: andreask tags: trunk
2013-09-17
23:18
Tweaked validation type helper command to generate clearer message for validation failures. Better identification of the parameter in question. check-in: 54ae0a4ee3 user: andreask tags: trunk
2013-09-10
21:38
Fixed json and sql help generators, forgot to handle the new "label" key. check-in: 5c4cf3822c user: andreask tags: trunk
2013-08-30
01:12
Added help information to errors raised during parameter parsing. 4 failed tests to update. check-in: 5c83ebcb90 user: andreask tags: trunk
00:37
Fix conflict between officer::has for declared methods, and actor::has for common blocks. Now actor::exists check-in: 5f22774081 user: andreask tags: trunk
00:04
Renamed internally used common blocks. Moved to reserved names. check-in: f4c89fd980 user: andreask tags: trunk
2013-08-29
05:38
Fix comment typo, and use label for primary flag of options. check-in: 940bb8fdb8 user: aku tags: trunk
05:34
Fix forgotten internal use of when-set (callback signature change). check-in: 1b16ff6c0f user: aku tags: trunk
05:32
Fix missing initialization in help generator. check-in: ead056f602 user: aku tags: trunk
2013-08-23
18:52
New feature: Parameter labels, override name shown in help. Plus new config method to query parameter existence. check-in: da6a48c70d user: andreask tags: trunk
2013-08-22
20:51
Make config self available through method, in both config, and the parameter forwarder. check-in: 4ddbb882ce user: andreask tags: conference, trunk, v0.4
2013-08-21
21:10
Dropped parameter class method "undefined", replaced by instance method "undefined!". Make parameter self available through method. check-in: 858270adbc user: andreask tags: trunk
20:04
Bump version to 0.4. Parameter API changes. * "defined?" becomes "set?". * "when-defined" becomes "when-complete". * The "default" value is now handled as int.rep, not going through validation. (Like the result of the "generate" callback). * Updated validation type "default" to always provide something. * Standard VT fail now takes parameter instance command as first argument (see also below about callbacks), and uses it to generate an enhanced error message (naming the parameter at issue). Callback API changes. * All callbacks now take the parameter instance command as their first argument. * Removed the (class)methods to dynamically locate and access a innermost config instance on the stack. * As replacement added method "config" to make the container accessible from each parameter it contains, and thus all other parameters as well. * Update all validation types. check-in: abe9e7a804 user: andreask tags: trunk
2013-08-07
20:26
Fixed issue with clashing option prefixes, where an option is prefix of another. check-in: f71d7fcb19 user: andreask tags: trunk, v0.3
2013-08-03
01:20
Added help format: sql. Data is saved as sql schema and tables. Usecase: Query and explore without searching code. check-in: ef3c41460c user: andreask tags: trunk
01:18
Save list of state names in help structures. Updated json format. check-in: a65dc9a944 user: andreask tags: trunk
2013-08-02
23:45
Reworked the help data structures to show much more of the internals in the json format, and updated the standard formats for it. check-in: 8b8ed7f0f5 user: andreask tags: trunk
22:08
Added a json output format to the help system. check-in: 5829cbd94c user: andreask tags: trunk
22:07
Added a bit more debug narrative in the help support check-in: 0472dca221 user: andreask tags: trunk
21:33
Added defered/immediate distinction for parameters, with state defaulting to defered, and the others as immediate. Updated tests. Bumped version to 0.3. check-in: a81d6b881f user: andreask tags: trunk
2013-07-25
20:22
AS bug 99702. Fix handling of argument queue in code for splat. Did not take changing result type of struct::queue get into account. check-in: 02ba0ccd02 user: andreask tags: trunk
2013-07-12
21:26
Fixed two bugs: (1) Generate proper return value when aborting interaction, has to be boolean. (2) Distinguish a missing option value from a regular "not enough arguments" error and do not invoke the mini shell for this. check-in: 1ace0b3ecb user: andreask tags: trunk
2013-07-10
22:56
Handled the issue noted in the previous commit. Full forget not required in printstate, as changed parameter already forgot thei value on set. This restricts the amount of recalculation. And the changed flag are defined, so will not reach intreaction or other hooks. Two, added flag to transiently disable interaction, used by PrintState to avoid interaction even for those parameters which were not defined (I.e. --debug cmdr narrastive should not interact) check-in: 595c99c651 user: andreask tags: trunk
19:21
Extended debug narrative. Note: Found problem with PrintState - forgets config, forces invoke of generate hooks, which may "interact" with the user. Bad. See if we can work out if this can be done without a "forget". check-in: 1bcb22464c user: andreask tags: trunk
2013-07-03
23:07
Fix oops in internal caller of interaction, caused by the movement into separate method. Implied return went away. check-in: d450e14beb user: andreask tags: trunk
21:35
Tweaked interaction for list parameters for clarity. check-in: ef6737b385 user: andreask tags: trunk
21:28
Tweaked config interaction. Removed indicator for required, implied in the color and (undefined) marker. Added marker for List arguments. Went from 'fullname' to new 'dname' to show actual command, not the internal officer hierarchy. check-in: dfc00db967 user: andreask tags: trunk
21:16
Fixed issue with separated interact. Stuff entered items into both string and value levels. I.e. treat as implied 'set'. Not handling the string level was ok while it was only part of definining a value when not defined. Outside setting of a parameter goes through string value however. check-in: 842a1b0a94 user: andreask tags: trunk
19:38
Moved interactive definition of a parameter value into separate method, for external use. We now always define a prompt, to have it available should the user choose to run the new interaction method on a parameter which is normally non-interactive. check-in: fd627d18b2 user: andreask tags: trunk
2013-07-02
18:20
Bump version to 0.2 check-in: c576a5a9ef user: andreask tags: trunk
18:20
Fix oopses in previous commits check-in: 36e2d274c3 user: andreask tags: trunk
2013-06-28
23:13
Added a convenience command for the easy dynamic creation of officer hierarchies. Commands are specified as patrh of words, plus regular and action specification for the private at the end. check-in: 509fe6c988 user: andreask tags: trunk
19:13
Extended standard set of validation types with more path checks check-in: d3908da266 user: andreask tags: trunk
19:11
Extended standard set of validation types with basic path checks. check-in: 69729e74f7 user: andreask tags: trunk
18:29
Moved the validation utility commands into separate package. Tweaked the handling of validation in parameters a bit, to avoid superfluous dis- and re-aggregation of the command prefix. check-in: 4076919cb8 user: andreask tags: trunk
17:37
Made the config state dump configurable. Tweaked the shells to ignore empty commands. check-in: b458449ae0 user: andreask tags: trunk
17:06
Tweaks to the interaction prompts check-in: 31ae94f8d0 user: andreask tags: trunk
2013-06-24
16:56
Fixed isue with help generator. Handle possibility of more words to resolve after having reached a leaf of the command tree. check-in: dac3fcc75f user: andreask tags: trunk
2013-06-21
20:01
Small fix to the prompt for parameter entry. Needed trailing space. check-in: 688a532156 user: andreask tags: trunk
2013-06-20
17:58
Extended actor store with "lappend" method. Generate better error message for unknown commands. check-in: 2b0a88ce08 user: andreask tags: trunk
2013-06-11
18:37
Fixed meta data typo in cmdr::parameter check-in: 4d56f916cd user: andreask tags: trunk
2013-06-10
23:34
Fixed missing initalization of instance variable. Broke commands without any argument. check-in: c5b08c6559 user: andreask tags: trunk
2013-05-22
21:52
Sort help by command name. check-in: e7ffa0b314 user: andreask tags: trunk
21:29
Added author and location meta data. check-in: d473b0c8bc user: andreask tags: trunk
20:39
Added teapot meta data to all cmdr packages. check-in: 5d1611cb80 user: andreask tags: trunk
2013-05-15
05:41
Brought branch back, confirmed to fix problem shown by new test. check-in: 5d1ccdd208 user: aku tags: trunk
05:40
Get new tests. Closed-Leaf check-in: f3263fd143 user: aku tags: force-check
05:40
Extended testsuite for validation errors. check-in: f657371683 user: aku tags: trunk
2013-05-10
19:41
Possibly to catch "undefined" reports. check-in: b83f6d6d36 user: andreask tags: force-check
2013-05-09
22:08
Why am I catching all errors when forcing the config before invoking the command ? That effectively disables all validators. check-in: 1e953ac73f user: andreask tags: force-check
2013-04-06
00:04
Fixed place still using "plain" instead of "full" as standard help format. check-in: 48febc75f2 user: andreask tags: trunk
2013-04-05
23:43
Fixed missing return check-in: 486d5923be user: andreask tags: trunk
19:59
Added debug narrative to the system, based on the new tcllib/debug packages. check-in: fbf43a6c26 user: andreask tags: trunk
2013-04-04
05:23
Parsing tweak. When encountering a bad option see if it can be handled as regular argument before bailing out. check-in: e6db958b51 user: aku tags: trunk
05:00
Second charge of renaming "xo" to "cmdr". Plus tweak to processing of optional list arguments, preventing ahead-processing of options. They are made part of the splat. check-in: e756a91488 user: aku tags: trunk