Conditions | 3 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import sys |
||
21 | @resmgr_cli.command('list-available') |
||
22 | @click.option('-e', '--executable', help='Show only resources for executable EXEC', metavar='EXEC') |
||
23 | def list_available(executable=None): |
||
24 | """ |
||
25 | List available resources |
||
26 | """ |
||
27 | resmgr = OcrdResourceManager() |
||
28 | for executable, reslist in resmgr.list_available(executable): |
||
29 | print('%s' % executable) |
||
30 | for resdict in reslist: |
||
31 | print('- %s (%s)\n %s' % (resdict['name'], resdict['url'], resdict['description'])) |
||
32 | print() |
||
33 | |||
44 |