Uploaded image for project: 'Apache Any23 (Retired)'
  1. Apache Any23 (Retired)
  2. ANY23-71

improve the current CLI engine

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.7.0
    • core
    • None

    Description

      Actual CLI - even if nicely working - can be improved in therms of of both internal architecture and user interface.
      I see two main "issues" on current CLI:

      • on UI, the CLI exposes internal details, since the ToolRunner requires the classname of the tool has to be executed;
      • on internals, each Tool has to parse the the chunk of the command line, which can be automated.

      So my proposal is to automate, via the already working plugins discovery, the CLI arguments parsing AND implementing a svn/git commands-based alike interface.

      My preferred choice for that is JCommande because:

      • it allows binding CLI arguments to Java properties via Annotations - no more manual parsing;
      • it already supports a complex syntax to implement commands;
      • commands aliases can be expressed via annotations - no more needs to expose internals;

      Patch with proposal is coming

      Attachments

        1. enhanced_cli.patch
          89 kB
          Simone Tripodi

        Issue Links

          Activity

            People

              michele.mostarda Michele Mostarda
              simone.tripodi Simone Tripodi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: