libbe.command.set
¶
-
class
libbe.command.set.
Set
(*args, **kwargs)¶ 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
([argument, fragment])help
(*args)run
([options, args])usage
()-
name
= 'set'¶
-
-
libbe.command.set.
complete_bugdir_settings
(command, argument, fragment=None)¶ List possible command completions for fragment.
Neither the command nor argument arguments are used.
-
libbe.command.set.
get_bugdir_settings
()¶