change output of 'backends list' command
This commit is contained in:
parent
7efc743694
commit
95c445223c
1 changed files with 5 additions and 2 deletions
|
|
@ -495,8 +495,11 @@ class ReplApplication(Cmd, BaseApplication):
|
||||||
for backend in given_backends:
|
for backend in given_backends:
|
||||||
self.enabled_backends.add(backend)
|
self.enabled_backends.add(backend)
|
||||||
elif action == 'list':
|
elif action == 'list':
|
||||||
print 'Available: %s' % ', '.join(sorted(backend.name for backend in self.weboob.iter_backends()))
|
enabled_backends_names = set(backend.name for backend in self.enabled_backends)
|
||||||
print 'Enabled: %s' % ', '.join(sorted(backend.name for backend in self.enabled_backends))
|
disabled_backends_names = set(backend.name for backend in self.weboob.iter_backends()) - enabled_backends_names
|
||||||
|
print 'Enabled: %s' % ', '.join(enabled_backends_names)
|
||||||
|
if len(disabled_backends_names) > 0:
|
||||||
|
print 'Disabled: %s' % ', '.join(disabled_backends_names)
|
||||||
elif action == 'add':
|
elif action == 'add':
|
||||||
for name in given_backend_names:
|
for name in given_backend_names:
|
||||||
instname = self.add_backend(name)
|
instname = self.add_backend(name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue