You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Gert Vanthienen (Created) (JIRA)" <ji...@apache.org> on 2011/10/25 11:58:32 UTC

[jira] [Created] (KARAF-960) Add information about available variables in the Karaf shell

Add information about available variables in the Karaf shell
------------------------------------------------------------

                 Key: KARAF-960
                 URL: https://issues.apache.org/jira/browse/KARAF-960
             Project: Karaf
          Issue Type: Improvement
          Components: karaf-documentation
    Affects Versions: 2.2.4, 3.0.0
            Reporter: Gert Vanthienen


It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-960) Add information about available variables in the Karaf shell

Posted by "Guillaume Nodet (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158336#comment-13158336 ] 

Guillaume Nodet commented on KARAF-960:
---------------------------------------

Note that the list of existing shell variables can be retrieved using:

{code}

karaf@root> $.variables
karaf.lastException
a
SCOPE
APPLICATION
.jline.terminal
lde
.jline.history
USER
#LINES
.jline.reader
#COLUMNS
ld
cl
la

karaf@root> 
{code}

                
> Add information about available variables in the Karaf shell
> ------------------------------------------------------------
>
>                 Key: KARAF-960
>                 URL: https://issues.apache.org/jira/browse/KARAF-960
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-documentation
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Gert Vanthienen
>
> It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (KARAF-960) Add information about available variables in the Karaf shell

Posted by "Guillaume Nodet (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158337#comment-13158337 ] 

Guillaume Nodet edited comment on KARAF-960 at 11/28/11 10:43 AM:
------------------------------------------------------------------

The list of all commands can be retrieved using:

{code}
karaf@root> $.commands
bundles:addcommand
bundles:removecommand
bundles:eval
*:help
shell:history
shell:logout
shell:echo
....
{code}
                
      was (Author: gnt):
    The list of all commands can be retrieved using:


karaf@root> $.commands
bundles:addcommand
bundles:removecommand
bundles:eval
*:help
shell:history
shell:logout
shell:echo
....
{code}
                  
> Add information about available variables in the Karaf shell
> ------------------------------------------------------------
>
>                 Key: KARAF-960
>                 URL: https://issues.apache.org/jira/browse/KARAF-960
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-documentation
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Gert Vanthienen
>
> It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-960) Add information about available variables in the Karaf shell

Posted by "Dr. Dietmar Wolz (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156735#comment-13156735 ] 

Dr. Dietmar Wolz commented on KARAF-960:
----------------------------------------

Is there a workaround for the "Command not found: loadClass" issue - any other way to load a Java class in 2.2.4?
                
> Add information about available variables in the Karaf shell
> ------------------------------------------------------------
>
>                 Key: KARAF-960
>                 URL: https://issues.apache.org/jira/browse/KARAF-960
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-documentation
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Gert Vanthienen
>
> It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-960) Add information about available variables in the Karaf shell

Posted by "Łukasz Dywicki (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144037#comment-13144037 ] 

Łukasz Dywicki commented on KARAF-960:
--------------------------------------

Example form docs doesn't work any more - in Karaf 2.2.4, eg 
{code}
addcommand system (loadClass java.lang.System) 
Command not found: loadClass
{code}
                
> Add information about available variables in the Karaf shell
> ------------------------------------------------------------
>
>                 Key: KARAF-960
>                 URL: https://issues.apache.org/jira/browse/KARAF-960
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-documentation
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Gert Vanthienen
>
> It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-960) Add information about available variables in the Karaf shell

Posted by "Guillaume Nodet (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158337#comment-13158337 ] 

Guillaume Nodet commented on KARAF-960:
---------------------------------------

The list of all commands can be retrieved using:


karaf@root> $.commands
bundles:addcommand
bundles:removecommand
bundles:eval
*:help
shell:history
shell:logout
shell:echo
....
{code}
                
> Add information about available variables in the Karaf shell
> ------------------------------------------------------------
>
>                 Key: KARAF-960
>                 URL: https://issues.apache.org/jira/browse/KARAF-960
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-documentation
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Gert Vanthienen
>
> It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-960) Add information about available variables in the Karaf shell

Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135895#comment-13135895 ] 

Jean-Baptiste Onofré commented on KARAF-960:
--------------------------------------------

Agree. 

In addition of the documentation, we can add a shell:variables command to display all known variables, session variables, system variables.

WDYT ?
                
> Add information about available variables in the Karaf shell
> ------------------------------------------------------------
>
>                 Key: KARAF-960
>                 URL: https://issues.apache.org/jira/browse/KARAF-960
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-documentation
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Gert Vanthienen
>
> It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-960) Add information about available variables in the Karaf shell

Posted by "Gert Vanthienen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135907#comment-13135907 ] 

Gert Vanthienen commented on KARAF-960:
---------------------------------------

Sure, that would be nice too - or perhaps implement tab-completion for this so you can just do $.<TAB> to get the options available ?
                
> Add information about available variables in the Karaf shell
> ------------------------------------------------------------
>
>                 Key: KARAF-960
>                 URL: https://issues.apache.org/jira/browse/KARAF-960
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-documentation
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Gert Vanthienen
>
> It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-960) Add information about available variables in the Karaf shell

Posted by "Guillaume Nodet (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158326#comment-13158326 ] 

Guillaume Nodet commented on KARAF-960:
---------------------------------------

Yes,

{code}

addcommand system (($.context bundle) loadClass java.lang.System)

{code}
                
> Add information about available variables in the Karaf shell
> ------------------------------------------------------------
>
>                 Key: KARAF-960
>                 URL: https://issues.apache.org/jira/browse/KARAF-960
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-documentation
>    Affects Versions: 2.2.4, 3.0.0
>            Reporter: Gert Vanthienen
>
> It would be good to add information about the available variables ($.bundles, $.context, ...) and the closure syntax in the Karaf shell to the Karaf documentation.  A user on the ServiceMix mailing list was asking about more information on this topic (cfr. http://servicemix.396122.n5.nabble.com/karaf-shell-each-example-td3347514.html#a4919235) and it would make a nice addition to what's already available in http://karaf.apache.org/manual/latest-2.2.x/developers-guide/shell-syntax.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira