Add new command "balance" for boobill

This commit is contained in:
Florent 2012-08-29 16:27:42 +02:00
commit 757167a6eb

View file

@ -116,6 +116,16 @@ class Boobill(ReplApplication):
self.format(mysum) self.format(mysum)
self.flush() self.flush()
def do_balance(self, id):
"""
balance [Id]
Get balance of subscriptions.
If no ID given, display balance of all backends
"""
self.exec_method(id, 'get_balance')
def do_history(self, id): def do_history(self, id):
""" """
history [Id] history [Id]