summaryrefslogtreecommitdiffstats
path: root/overlord/command.py
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@dangerouslyinc.com>2007-09-30 13:27:09 -0300
committerJames Bowes <jbowes@redhat.com>2007-10-02 19:53:37 -0400
commitb5c6a99683be439e910864f5389d0f3f86fa13a8 (patch)
tree5585b2eb78c90fa91de6a8c2fdd80826776a0b85 /overlord/command.py
parent63f382c1742d52b590d0436e878ff9dfb75e7e75 (diff)
downloadfunc-b5c6a99683be439e910864f5389d0f3f86fa13a8.tar.gz
func-b5c6a99683be439e910864f5389d0f3f86fa13a8.tar.xz
func-b5c6a99683be439e910864f5389d0f3f86fa13a8.zip
Added func --list-minions option.
Diffstat (limited to 'overlord/command.py')
-rw-r--r--overlord/command.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/overlord/command.py b/overlord/command.py
index d2af494..54da1ec 100644
--- a/overlord/command.py
+++ b/overlord/command.py
@@ -14,6 +14,9 @@ Command class.
import optparse
import sys
+from func.config import read_config, CONFIG_FILE
+from func.commonconfig import CMConfig
+
class CommandHelpFormatter(optparse.IndentedHelpFormatter):
"""
I format the description as usual, but add an overview of commands
@@ -112,6 +115,8 @@ class Command:
self.stderr = stderr
self.parentCommand = parentCommand
+ self.config = read_config(CONFIG_FILE, CMConfig)
+
# create subcommands if we have them
self.subCommands = {}
self.aliasedSubCommands = {}