Menu

Version 0.2: do you need anything there?

Hi everyone,

as 0.1 has been already out for a while, I'm starting to plan the new features to add to the library.
So far this is what I have in mind, but not sure I'll be able to include everything in 0.2:

  • runtime change of the prompt in command callbacks (to override the value of the prompt defined in the XML file)
  • commands and parameters abbreviation
  • implementation of back-search (like <CTRL-r> in BASH)
  • definition of a XSD for the XML files (possibly to be used by clickbuilder)
  • expand the helper macros to be used in the callbacks

as well as fixing bugs (no bugs reported so far) and creating new examples to show the features better.

Also, please bear in mind I'm trying to enrich the wiki pages as much as I can, please be patient.

But what I want from you guys is hints on what you'd like to see included in the library, I am quite flexible, so if your ideas match mine, I'll just arrange my spare time to implement what you need.

Finally, if you want to contribute, just send me a message, I'll reply ASAP.

Thanks everyone for your collaboration.

Marco

Posted by zacmarco 2015-10-14
  • Ray Silagi

    Ray Silagi - 2016-07-15

    I'm starting a new product/project and will be using this CLI. This product will be an embedded IoT type device so I need a minimum type of CLI. I have a single suggestion for a new feature. I would like the error mesage to inlcude the help message. The current error message is too generic. The current error message is:

    MISSING VALUE FOR PARAMETER "time"

    My suggestion:

    MISSING VALUE FOR PARAMETER "time"
    DESCRIPTION:
    Enter the time as yy mm dd hh mm ss

    For my projects I would vote against your feature 1, "runtime change of the prompt" I don't see any reason to do this. The CLI is used to control the product by engineers and support, the user's will use a web browser.

    I hope this helps,
    Cheers;
    Ray

     
  • Ray Silagi

    Ray Silagi - 2016-10-12

    Hi Marco,
    I'm looking for the changes that were put on the git "development" branch. I don't know much about git so, I was not able to find them. I did the "git clone .." of what you have in the code page. That seems exactly the same as 0.1. Am I missing something or are they the same?

    Thanks for all this work.
    Ray S.

     
  • zacmarco

    zacmarco - 2016-11-22

    Hi Ray,

    sorry for the delay, I just realized that my previous reply didn't arrive to you because of a mistake in the way I was replying.
    So, back to us... I am currently preparing a new release that will contain all the fixes for problems found so far, including the one you are facing.
    Planning to complete the packing and final testing by the end of this week.

    Thanks

    Marco

     
  • zacmarco

    zacmarco - 2016-11-22

    Hi Ray,

    need to get back to you very quickly :)
    Apart from bug fixing, let me understand better your suggestion: would you like to define in the XML file a default error message to be printed out when a required parameter is missing?
    This can be done, it would require some changes, but can be done.

    Another approach would be to define per each command a single callback to be called in case of parsing errors like this, so leaving to the developer the task of writing the appropriate error message depending on the error.

    Do you have any time constraint for such a feature?

    Last question: I guess you have already started integrating CLIck into your system. How is it going so far?

    Thanks

    Marco

     
  • Ray Silagi

    Ray Silagi - 2016-11-22

    Hi Marco,
    I was thinking of some way to do parameter checking before the actual callback. Something that will help the next person working on my code to do the parameter checking in a consistent way.

    Sometimes the callbacks have more code for parameter validation then actual param handling. Each person that works on the code does things just different enough to be confusing. I looked at adding another char pointer to the your struct in click builder however, I got put on another project before I could figure out all the consequences of that change. You did ask for suggestions.

    Now that I been using it more I found there are common conversions I need, like string to int or string to long long, or string to strings. I don’t have any time constraint. I'm just starting a new project, building up the infrastructure, build directories, and outlining everything that needs to be done. So, January would be find.

    I did a presentation for the group and my manager. Everyone liked it and I got the OK to use CLIck for my current project. I have integrated it into my build tree. I am using Buildroot so next week I will create a Buildroot package for it and an item to be in menuconfig. (section 17.5 and 17.6 in Buildroot). Putting it in as a Buildroot package, I can change one line, the version number, and get your latest.

    Happy thanksgiving
    Ray S.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.