Hi Neil,

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.
Ah, that’s a great suggestion, thanks.

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.
Got it, thanks. So if a command, like list, is implemented in different bundles 
you need to prepend the scope to differentiate.

Thanks for the explanation,

Erwin

service; org.apache.felix.gogo.command.OBR with properties:
   osgi.command.function = deploy, info, javadoc, list, repos, source
   osgi.command.scope = our

service; org.apache.felix.scr.impl.ScrGogoCommand with properties:
   service.vendor = The Apache Software Foundation
   service.description = SCR Gogo Shell Support
   osgi.command.function = config, disable, enable, info, list
   osgi.command.scope = scr

g! help list

list - list repository resources
   scope: obr
   flags:
      -v, --verbose   display all versions
   parameters:
      String[]   optional strings used for name matching
g! help scr:list

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




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