diff options
author | Chris Vuletich <vuletich@mcs.anl.gov> | 2006-08-24 21:43:01 +0000 |
---|---|---|
committer | Chris Vuletich <vuletich@mcs.anl.gov> | 2006-08-24 21:43:01 +0000 |
commit | 7d04c19afa0f690a3123fc5a7c929a4675b37b84 (patch) | |
tree | f562e16dc360b91514b12335e36edbb764fa5e77 /src/sbin | |
parent | c9c418532cc15c3c1c914083867923bd74f644b6 (diff) | |
download | bcfg2-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-x | src/sbin/bcfg2 | 6 |
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() |