summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/interpret.py
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-04-18 16:40:03 +0200
committerMartin Sivak <msivak@redhat.com>2008-04-18 16:40:03 +0200
commit0b80133a5a7504c3e4b138efcd3851765cccc90d (patch)
tree5c0146eb588d8570af8f8b77aa3d5afee1faf7ee /pyfirstaidkit/interpret.py
parent4ebb2ac6dff43701d938c05f19459bb513d22151 (diff)
downloadfirstaidkit-0b80133a5a7504c3e4b138efcd3851765cccc90d.tar.gz
firstaidkit-0b80133a5a7504c3e4b138efcd3851765cccc90d.tar.xz
firstaidkit-0b80133a5a7504c3e4b138efcd3851765cccc90d.zip
Add --flags commandline option to list all known dependency flags
Diffstat (limited to 'pyfirstaidkit/interpret.py')
-rw-r--r--pyfirstaidkit/interpret.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyfirstaidkit/interpret.py b/pyfirstaidkit/interpret.py
index be54035..35b0f44 100644
--- a/pyfirstaidkit/interpret.py
+++ b/pyfirstaidkit/interpret.py
@@ -22,7 +22,7 @@ import logging
import copy
from errors import *
from utils import FileBackupStore
-from dependency import RunDependencies
+from dependency import Dependencies
Logger=logging.getLogger("firstaidkit")
@@ -32,7 +32,7 @@ class Tasker:
name = "Task interpreter"
def __init__(self, cfg):
- self._provide = RunDependencies()
+ self._provide = Dependencies()
self._config = cfg
self._reporting = Reports()
self._backups = FileBackupStore(cfg.backup.path)
@@ -102,6 +102,8 @@ class Tasker:
pass
elif self._config.operation.mode == "task":
pass
+ elif self._config.operation.mode == "flags":
+ self._reporting.table(self._provide.known(), level = TASKER, origin = self, title = "List of flags")
elif self._config.operation.mode == "list":
#get list of plugins
rep = []