Hi Derek,

Cool thanks,

g! type -a list
list is void obr:list(boolean, String[])
list is void scr:list(String)
list is void scr:list()
true

That shows the scopes, not necessarily the bundle that implements the command 
though.

Erwin



On Jan 10, 2018, at 09:05, Derek Baum 
<de...@baums.org.uk<mailto:de...@baums.org.uk>> wrote:

You can also use the gogo 'type' command (which is modelled on the bash command 
of the same name):



g! type --help
type - show command type
Usage: type [OPTIONS] [name[:]]
 -a --all                 show all matches
 -? --help                show help
 -q --quiet               don't print anything, just return status
 -s --scope=NAME          list all commands in named scope
 -t --types               show full java type names
true
g! type cd
cd is void gogo:cd(CommandSession, String[])
true
g! type -a cd
cd is void gogo:cd(CommandSession, String[])
cd is File felix:cd(CommandSession, String)
cd is File felix:cd(CommandSession)
true
g! type -t cd
void org.apache.felix.gogo.jline.Posix._main(CommandSession, String[])
true


--
Derek


On 10 Jan 2018, at 13:56, Neil Bartlett 
<njbartl...@gmail.com<mailto:njbartl...@gmail.com>> wrote:

You can use the "inspect cap service" command and search for services with
a property of "osgi.command.function" containing the command name you are
looking for.

Note that all of the duplicates you have shown are just overloaded methods.
For example "cd" with no parameters prints the current directory whereas
"cd <dir>" changes to the specified directory.

Neil

On Wed, Jan 10, 2018 at 1:52 PM, Erwin Hogeweg 
<erwin.hoge...@seecago.com<mailto:erwin.hoge...@seecago.com>>
wrote:

Hi,

Is there a way to find out which bundle/component provides a certain gogo
command?

When I type help I see a couple of duplicates (see below), and I am trying
to find out if I have a configuration problem or not.

The framework is equinox with felix gogo and scr.

Thanks,

Erwin


id State       Bundle
0 ACTIVE      org.eclipse.osgi_3.10.2.v20150203-1939
          Fragments=5
1 ACTIVE      org.apache.felix.gogo.command_0.16.0
2 ACTIVE      org.apache.felix.gogo.runtime_0.16.2
3 ACTIVE      org.apache.felix.gogo.shell_0.12.0
8 ACTIVE      org.apache.felix.eventadmin_1.4.6
9 ACTIVE      org.apache.felix.scr_2.0.8
10 ACTIVE      org.apache.felix.configadmin_1.8.14
11 ACTIVE      org.apache.felix.fileinstall_3.5.4


list - List component configurations of a specific bundle
 scope: scr
 parameters:
    String   Symbolic name or ID of the bundle

list - List all component configurations
 scope: scr

up - Update the specified bundle from the specified location
 scope: equinox
 parameters:
    Bundle   Bundle to update
    URL   Location of the new bundle content

up - update the specified bundle(s)
 scope: equinox
 parameters:
    Bundle[]   bundle(s) to update

cd - change current directory
 scope: felix
 parameters:
    String   target directory

cd - get current directory
 scope: felix


Erwin Hogeweg
CTO
3690 Airport Road
Boca Raton, FL 33431
P. +1 (954) 556-6565
M. +1 (561) 306-7395
F. +1 (561) 948-2730
[Seecago]<http://www.seecago.com>



Erwin Hogeweg
CTO
3690 Airport Road
Boca Raton, FL 33431
P. +1 (954) 556-6565
M. +1 (561) 306-7395
F. +1 (561) 948-2730
[Seecago]<http://www.seecago.com>

Reply via email to