summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorChris Vuletich <vuletich@mcs.anl.gov>2006-08-24 21:43:01 +0000
committerChris Vuletich <vuletich@mcs.anl.gov>2006-08-24 21:43:01 +0000
commit7d04c19afa0f690a3123fc5a7c929a4675b37b84 (patch)
treef562e16dc360b91514b12335e36edbb764fa5e77 /src/sbin
parentc9c418532cc15c3c1c914083867923bd74f644b6 (diff)
downloadbcfg2-7d04c19afa0f690a3123fc5a7c929a4675b37b84.tar.gz
bcfg2-7d04c19afa0f690a3123fc5a7c929a4675b37b84.tar.bz2
bcfg2-7d04c19afa0f690a3123fc5a7c929a4675b37b84.zip
Implement interactive mode for the client
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2107 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg26
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index 909a8360a..e803043c9 100755
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -41,6 +41,8 @@ class Client:
False, False, False, False),
'file': (('-f', "<configspec>", "configure from a file rather than querying the server"),
False, False, False, False),
+ 'interactive': (('-I', False, "prompt the user for each change"),
+ False, False, False, True),
'cache': (('-c', "<configspec>", "store the configuration in a file"),
False, False, False, False),
'profile': (('-p', '<profile>', "assert the given profile for the host"),
@@ -253,6 +255,10 @@ class Client:
# summarize current state
self.toolset.CondDisplayState('initial')
+ # run bcfg in interactive mode
+ if self.setup['interactive']:
+ self.toolset.PromptUser()
+
# install incorrect aspects of configuration
self.toolset.Install()