Giter Site home page Giter Site logo

cliche's People

Watchers

 avatar

cliche's Issues

abbreviated exit

Would be nice to have an abbreviated version of the exit command e.g. x or q

Original issue reported on code.google.com by [email protected] on 9 Jul 2014 at 1:21

Does it support auto complete ?

I was wondering if your nice shell support auto completion? if yes How should I 
enable it?
if now, it is nice if you conclude it :) 

Original issue reported on code.google.com by [email protected] on 29 Jun 2013 at 10:53

Please submit to a maven repository

What steps will reproduce the problem?
None - just hoping to encourage developer to submit this to a maven repository 
(or share the repository that may already contain it).

What is the expected output? What do you see instead?
N/A.

What version of the product are you using? On what operating system?
N/A

Please provide any additional information below.
N/A

Original issue reported on code.google.com by [email protected] on 25 Apr 2011 at 1:37

'There's no command "X" taking 0 arguments' if command uses varargs

What steps will reproduce the problem?
1. create command method that takes one vararg parameter.
@Command
public void command(String...args){...}
2. call it without parameters
> command
3. error occurs

I expected that such command takes any number of arguments, including 0 - 
calling command() is valid use of such method

Instead cliche throws asg.cliche.CLIException: There's no command "command" 
taking 0 arguments

Original issue reported on code.google.com by [email protected] on 11 Mar 2013 at 7:25

Please release the stable version if possible

Is there any particular reason why this is not available in a stable version 
from maven repo. From what I can see its available only with 1.0-SNAPSHOT which 
can cause some troubles when cutting a release of our product. Could you pls 
release the stable one to public mvn repo please?


Original issue reported on code.google.com by [email protected] on 11 Jun 2013 at 7:36

command arguments cannot contain " or ' characters

What steps will reproduce the problem?

1. Define a command that takes one argument and writes it to stdout.
2. Execute shell, supply an argument that contains a " or ' character.
3. Observe the value of the argument written to stdout.

What is the expected output? What do you see instead?

I would expect the " or ' character to be included in the stdout, but it is 
apparently being stripped out.

What version of the product are you using? On what operating system?

Cliche version 110413
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
OS X 10.9.5 (13F34)

Please provide any additional information below.

Attempted to escape the quote characters with \, but doesn't seem to help.  It 
would be very useful to be able to include " or ' characters as this allows for 
a small JSON or XML fragment to be provided as a command argument.

Original issue reported on code.google.com by [email protected] on 11 Feb 2015 at 8:49

dynamically react on any user input

I am sorry, this is not a bug, more a question or a feature request. May be its 
already explained somewhere, but I didn't found.

I wonder if there is a possible, to react dynamically on any user input?
In my concrete case, I want to offer a menue to the user, where he could choose 
an item of a dynamically created list e.g.

1: Item A
2: Item B
3: Item C
4: Item D  

I want the user to input just '1', '2' etc.. I know I can create a method and 
pass the number as parameter, but this is a bit clumsy in my case. 
Another but related question is, is it possible to react on empty lines, so if 
the user just presses enter without any command?

Original issue reported on code.google.com by [email protected] on 2 Apr 2014 at 3:27

Custom stdin,stdout,stderr

I'd like to use the shell remotely via ssh or telnet. Is it possible?
I think we need to be able to pass custom stdin,stdout,stderr to the 
ShellFactory to do so.

Original issue reported on code.google.com by [email protected] on 2 Mar 2015 at 12:36

Exit current sub shell after command

It would be nice to be able to interrupt the sub command loop at the end of a 
commend.

Currently I do this like this:

public class ExitSettings extends Settings {

    public static final Settings INSTANCE = new ExitSettings();

    public ExitSettings() {
        super(ExitCommandInput.INSTANCE, SilentOutput.INSTANCE, null, Boolean.FALSE);
    }

}

public class SilentOutput implements Output {

    public static final Output INSTANCE = new SilentOutput();

    @Override
    public void outputHeader(String paramString) {
    }

    @Override
    public void outputException(String paramString, TokenException paramTokenException) {
    }

    @Override
    public void outputException(Throwable paramThrowable) {
    }

    @Override
    public void output(Object paramObject, OutputConversionEngine paramOutputConversionEngine) {
    }
}

public class ExitCommandInput implements Input {

    public static final Input INSTANCE = new ExitCommandInput();

    @Override
    public String readCommand(List<String> paramList) {
        return "exit";
    }

}

theShell.setSettings(ExitSettings.INSTANCE);

with theShell obtained from ShellDependent

would be much nicer to have something like pushSubShell and popSubShell


Original issue reported on code.google.com by [email protected] on 9 Jul 2014 at 1:24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.