Aesh

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove maven-compiler plugin from pom.xml

As per:

https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html

if we specify the property we don't need to define the plugin configuration.

Align command name and command description and add color

version 2.2

make sure we use the parsedCommand when we printHelp for runtime apps

version 2.1

updated runner and added tests

    • -0
    • +135
    /aesh/src/test/java/org/aesh/AeshConsoleRunnerTest.java
make sure we also check that runtime is null

added runners to simplify creating console and runtime applications

    • -0
    • +154
    /aesh/src/main/java/org/aesh/AeshConsoleRunner.java
    • -0
    • +108
    /aesh/src/main/java/org/aesh/AeshRuntimeRunner.java
    • -30
    • +10
    /examples/src/main/java/examples/SimpleExample.java
dev cycle 2.1

version 2.0

Merge pull request #305 from jfdenise/master

Fix for Execution.getCommand() NPE and expose Execution.populateCommand operation

use the new getHelpInfo method

    • -2
    • +2
    /examples/src/main/java/examples/Example.java
Fix for Execution.getCommand() NPE and expose Execution.populateCommand operation

added more multiple invocation tests

added a method on CommandInvocation to make it easier to print the help msg

[AESH-452] delay parsing until we execute.

    • -1
    • +15
    /aesh/src/main/java/org/aesh/command/Executor.java
  1. … 4 more files in changeset.
further generics cleanup

  1. … 19 more files in changeset.
make sure printHelp works for nested group commands

added copyright

make sure we generate correct json and able to create new files

[AESH-501] improve the generated help message

with the refactoring we've breaked the api so we're forced to do a 2.0 version

Merge pull request #304 from thescouser89/print-help-group

printHelp in CommandRuntime should consider full param string

printHelp in CommandRuntime should consider full param string

In `CommandRuntime`, once we get the desired `CommandContainer` object

for method `commandInfo`, we should pass the full 'line' String to

`commandContainer.printHelp`.

If the CommandContainer is a group command, the `printHelp` method

accepts multiple tokens in the parameter to help it find the correct

child parser (or sub-command/sub-groupcommand) to invoke the `printHelp`

method.

for e.g the 'line' string can be: 'main-group sub-group'

With the change in that commit, the CommandContainer for 'main-group'

will figure out that we want to find the child parser of 'sub-group' to

print its help text.

fixes build issues by the merge

refactored most of the command api, try to reduce the number of warnings user might get when using the api

  1. … 72 more files in changeset.
1.12 dev cycle

graal reflection file generation

    • -0
    • +9
    /aesh/src/test/resources/graal1
    • -0
    • +28
    /aesh/src/test/resources/graal2
    • -0
    • +35
    /aesh/src/test/resources/graal3
Merge pull request #303 from thescouser89/fixoutput

Put description in its own line for cli printHelp

Put description in its own line for cli printHelp

The old behaviour of printing the help text is as follows:

```

Usage: command description

Options:

--help

```

This is confusing because in the 'Usage' line, we're expecting the

cli-options to appear, and one might think that 'description' is a CLI

sub-command instead of the description itself (especially if the

description is short).

Instead, this commit puts the description in a new line to avoid this

confusion.

```

Usage: command

description

Options:

--help

```