mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 11:16:14 +02:00
Improved display of generators
This commit is contained in:
parent
9feb1aa72b
commit
a94128e6c6
2 changed files with 20 additions and 21 deletions
|
@ -122,7 +122,7 @@ elif arguments.command == 'list-generators':
|
|||
import inspect
|
||||
all_generators = inspect.getmembers(generators, inspect.isfunction)
|
||||
for generator in all_generators:
|
||||
print('Generator id:\n {}\nDesciption:\n {}'.format(
|
||||
crayons.green(generator[0]),
|
||||
generator[1].__doc__))
|
||||
print('')
|
||||
print('Generator id:')
|
||||
print(' {}'.format(crayons.green(generator[0], bold=True)))
|
||||
print('Desciption:')
|
||||
print(' {}'.format(generator[1].__doc__))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue