equal
deleted
inserted
replaced
109 |
109 |
110 def __init__(self, config, interactive=True, verbosity=1): |
110 def __init__(self, config, interactive=True, verbosity=1): |
111 self.config = config |
111 self.config = config |
112 if config: |
112 if config: |
113 # no config on shell to a remote instance |
113 # no config on shell to a remote instance |
114 self.config.init_log(logthreshold=logging.ERROR, debug=True) |
114 self.config.init_log(logthreshold=logging.ERROR) |
115 # 0: no confirmation, 1: only main commands confirmed, 2 ask for everything |
115 # 0: no confirmation, 1: only main commands confirmed, 2 ask for everything |
116 self.verbosity = verbosity |
116 self.verbosity = verbosity |
117 self.need_wrap = True |
117 self.need_wrap = True |
118 if not interactive or not verbosity: |
118 if not interactive or not verbosity: |
119 self.confirm = yes |
119 self.confirm = yes |