karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james strachan (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (KARAF-208) 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
Date Fri, 17 Sep 2010 08:29:32 GMT

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

james strachan resolved KARAF-208.
----------------------------------

    Resolution: Fixed

I'm going to mark this one as fixed as pretty much all the issues are resolved in karaf; just
need to fix up felix.gogo in the next release...

> 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.


Mime
View raw message