[ 
https://issues.apache.org/jira/browse/KARAF-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet updated KARAF-208:
----------------------------------

         Assignee: james strachan
    Fix Version/s: 2.1.0

> when reusing the karaf shell outside of OSGi where there's only one shell 
> scope, it would be nice to avoid prefixing the command names with the scope 
> or with "*:" which is confusing
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-208
>                 URL: https://issues.apache.org/jira/browse/KARAF-208
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: james strachan
>            Assignee: james strachan
>             Fix For: 2.1.0
>
>
> e.g. you get output like this...
> {code}
> in/scalate nosuchcommand
> java.lang.IllegalArgumentException: Command not found:  *:nosuchcommand
>         at 
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:225)
>         at 
> org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)
>         at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)
>         at 
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)
>         at 
> org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
>         at org.apache.karaf.shell.console.Main.run(Main.java:155)
>         at org.apache.karaf.shell.console.Main.run(Main.java:91)
>         at org.fusesource.scalate.tool.ScalateMain$.main(ScalateMain.scala:14)
>         at org.fusesource.scalate.tool.ScalateMain.main(ScalateMain.scala)
> {code}
> or on tab completion you tend to get all commands replicated with their 
> command name, plus scope:foo.
> e.g. tab completion inside scalate looks like this...
> {code}
> confexport           create               exit                 help           
>       run                  scalate:confexport   scalate:create       
> scalate:exit         scalate:help         scalate:run          scalate:tojade
> scalate:toscaml      tojade               toscaml
> {code}
> and help shows this...
> {code}
> > bin/scalate help
> COMMANDS
>         scalate:confexport
>                 Exports a confluence space.
>         scalate:create
>                 Creates your Scalate project fast to get you scalate-ing!
>         scalate:exit
>                 exit the shell
>         scalate:help
>                 Displays this help or help about a command
>         scalate:run
>                 Renders a Scalate template file
>         scalate:tojade
>                 Converts an XML or HTML file to Jade
>         scalate:toscaml
>                 Converts an XML or HTML file to Scaml{code}
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to