Skip to content

Releases: dparrish/libcli

V1.10.7

25 Feb 16:51
0f8d257
Compare
Choose a tag to compare

Remove extra line from help output for options/arguments
Fix memory leak in help line wrapper code

V1.10.6

23 Feb 01:20
54c0fe1
Compare
Choose a tag to compare

Bug fix release to fix issue #69

V1.10.5

08 Feb 16:44
b6ff35c
Compare
Choose a tag to compare
  • Allow compile time choice of 'select()' or 'poll()' when monitoring the libcli command file descriptor in cli_loop(). See README.MD for details
  • If the 'select()' call is chosen above, do a range validation to ensure the file descriptor is less than FD_SETSIZE
  • Fix incorrect help message if there is a validation problem for the value of an optional argument.
  • Fix confusing help message shown if there is a parsing problem for a subcommand
  • Add ppc64le to travis checking
  • Fix a number of possible issues identified by static code analysis. As a result, the 'full' name of all commands is generated in cli_register_command(), instead of on the fly as was done before
  • Fix formatting of 'long' commands. If a command name is longer than 22 characters the help message will start indented on a new line, instead of being appended immediately behind the command name with no separation.
  • Some minor changes to clitest.c to show correct behavior due to above changes.

V1.10.4 hot fix for a segfault bug

10 Mar 17:35
4ef0629
Compare
Choose a tag to compare

Fix segfault issue during tab/help processing

V1.10.3 Bugfixes, improved optional flag processing, quote processing

27 Feb 19:07
1d3d6ed
Compare
Choose a tag to compare

Summarized from spec file changelog:

  • Minor cosmetic change to how help messages are generated, minor edits
    to some comments, minor cosmetic change to clitest demo code
  • Tweak to buildmode to only show optargs 'after' the point at
    which buildmode was entered.
  • Add new 'cli_dump_optargs_and_args() function for development/debug
    Designed to be called from a callback to show output of optarg and
    argument processing.
  • Updated CLI_CMD_OPTIONAL_FLAG parsing to use an validator function
    (if provided) to determine if the word being looked is a match for
    the optional flag. If no validator function is provided then the
    word much match the name of the optional flag exactly.
  • Enhance how cli_parse_line handles quotes when parsine the command
    line. This includs mixed single/double quotes, embedded quoted
    substrings, and handling 'escaped' quotes using the '' character.
  • Ensure that buildmode preserves 'empty' strings
    (ex: "", or '') when regenerating the cmdline after the user 'executes'
    the command.

V1.10.2: Merge pull request #52 from dparrish/patch_against_libcli_1_10_0_rel2

24 Sep 12:26
359ddb6
Compare
Choose a tag to compare
  • Multiple significant bug fixes against V1.10.0 for options/arguments and buildmode processing
  • Cosmetic changes to text shown in buildmode
  • Addition of 'long line' processing for help entries (examples in clitest)
  • Addition of 'extra help' for optargs (examples in clitest)
  • Exposing previously hidden calls for internal help/exit/history/enable/disable commands

NOTE : there is a breaking API change from 1.10.0
The signature for cli_register_optarg() has been changed so the routine now returns a 'struct cli_optarg *' rather than a plain int value. This is due to the new cli_optarg_addhelp() routine needing a pointer to the optarg value that extra help is being added to.

Optional arguments

24 Jul 12:28
6a3b2f9
Compare
Choose a tag to compare
  • Add support for named arguments, optional flags, and optional arguments
  • Support help and tab complete for options/arguments
  • Enable users to add custom 'filters', including support for options/arguments
  • Replaced current internal filters with equivalent 'user filters'
  • Added support for 'building' longer commands one option/argument at a time (buildmode)
  • Tab completion will show up until an ambiguity, or entire entry if only one found
  • Tab completion for options/arguments will show '[]' around optional items
  • Tab completion for options/arguments will show '<>' around required items

v1.9.8-4: Merge pull request #34 from RobSanders/FixSymLinkOnLibraryFiles

21 Feb 17:54
96c4e40
Compare
Choose a tag to compare