From 80bb4864be30b34731e0f1b416769802ff1ba507 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Tue, 5 Aug 2008 15:00:35 -0400 Subject: [PATCH] Reimplement cmd_plugins --- yap/yap.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/yap/yap.py b/yap/yap.py index 45edcf4..3c8902a 100644 --- a/yap/yap.py +++ b/yap/yap.py @@ -1149,6 +1149,16 @@ commits cannot be made. print >> sys.stderr print >> sys.stderr, "(*) Indicates that the command is not readily reversible" + @short_help("show information about loaded plugins") + def cmd_plugins(self): + "" + print >> sys.stderr, "Loaded plugins:" + plugins = load_plugins() + for name, cls in plugins.items(): + print "\t%-16s: %s" % (name, cls.__doc__) + if not plugins: + print "\t%-16s" % "None" + def cmd_usage(self): print >> sys.stderr, "usage: %s " % os.path.basename(sys.argv[0]) print >> sys.stderr, " valid commands: help init clone add rm stage unstage status revert commit uncommit log show diff branch switch point cherry-pick repo track push fetch update history resolved version" -- 2.11.4.GIT