[GRASS-dev] [GRASS GIS] #3624: Let g.search.modules list all modules
GRASS GIS
trac at osgeo.org
Sun Aug 19 16:13:31 PDT 2018
#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>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list