Change bug directory settings
>>> import sys
>>> import libbe.bugdir
>>> bd = libbe.bugdir.SimpleBugDir(memory=False)
>>> io = libbe.command.StringInputOutput()
>>> io.stdout = sys.stdout
>>> ui = libbe.command.UserInterface(io=io)
>>> ui.storage_callbacks.set_storage(bd.storage)
>>> cmd = Set(ui=ui)
>>> ret = ui.run(cmd, args=['target'])
None
>>> ret = ui.run(cmd, args=['target', 'abcdefg'])
>>> ret = ui.run(cmd, args=['target'])
abcdefg
>>> ret = ui.run(cmd, args=['target', 'none'])
>>> ret = ui.run(cmd, args=['target'])
None
>>> ui.cleanup()
>>> bd.cleanup()
Methods
| cleanup | |
| complete | |
| help | |
| run | |
| usage |
List possible command completions for fragment.
Neither the command nor argument arguments are used.