Uploaded image for project: 'Karaf'
  1. Karaf
  2. 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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      e.g. you get output like this...

      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)
      

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

      confexport           create               exit                 help                 run                  scalate:confexport   scalate:create       scalate:exit         scalate:help         scalate:run          scalate:tojade
      scalate:toscaml      tojade               toscaml
      

      and help shows this...

      > 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

      Attachments

        Activity

          People

            jstrachan James Strachan
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: