[GRASS-dev] [GRASS GIS] #3624: Let g.search.modules list all modules

#3624: Let g.search.modules list all modules
------------------------------+-------------------------
Reporter: Nikos Alexandris | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: minor | Milestone:
Component: Default | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
------------------------------+-------------------------
See also: https://gis.stackexchange.com/a/179178/5256.

Just an idea, adding in `_search_module()` (under
https://trac.osgeo.org/grass/browser/grass/trunk/scripts/g.search.modules/g.search.modules.py#L203):

{{{
if keywords == ['*']:
     all_modules =

     for item in items:
         name = item.attrib['name']
         description = item.find('description').text
         module_keywords = item.find('keywords').text

         all_modules.append({
             'name': name,
             'attributes': {
                 'keywords': module_keywords,
                 'description': description
             }
         })

      return all_modules
}}}

works as a proof of concept. Or, add another flag, like `-l` that will
will do this?

This would make it easy to get the full list of existing modules for
further processing with standard *nix tools.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3624&gt;
GRASS GIS <https://grass.osgeo.org>

#3624: Let g.search.modules list all modules
-------------------------------+-------------------------
  Reporter: Nikos Alexandris | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: minor | Milestone:
Component: Default | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
-------------------------------+-------------------------

Comment (by neteler):

Replying to [ticket:3624 Nikos Alexandris]:
> This would make it easy to get the full list of existing modules for
further processing with standard *nix tools.

That would be very good. Especially, since JSON output is available.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3624#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3624: Let g.search.modules list all modules
-------------------------------+-------------------------
  Reporter: Nikos Alexandris | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: minor | Milestone:
Component: Default | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
-------------------------------+-------------------------

Comment (by Nikos Alexandris):

See also #3751.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3624#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3624: Let g.search.modules list all modules
-------------------------------+------------------------------
  Reporter: Nikos Alexandris | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: minor | Milestone: 7.8.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: g.search.modules
       CPU: Unspecified | Platform: Unspecified
-------------------------------+------------------------------
Changes (by neteler):

* keywords: => g.search.modules
* version: unspecified => svn-trunk
* component: Default => Python
* milestone: => 7.8.0

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3624#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>