Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, api, filename, command, title, assume_yes, quiet, max_wait, recorder=None):
Command.__init__(self, quiet)
self.api = api
self.filename = filename
self.command = command
self.title = title
self.assume_yes = assume_yes or quiet
self.max_wait = max_wait
self.recorder = recorder if recorder is not None else Recorder()
def __init__(self, args, config, env):
Command.__init__(self, args, config, env)
quiet=False,
env=None,
env_whitelist="",
record_stdin=False,
command=None,
title="HelpMe Recording",
append=False,
overwrite=False,
record_raw=False,
):
# If no custom file selected, create for user
if filename is None:
filename = self.generate_temporary_file()
Command.__init__(self, quiet=quiet)
self.api = api
self.filename = filename
self.rec_stdin = record_stdin
self.command = command or os.environ["SHELL"]
self.env_whitelist = ""
self.title = title
self.assume_yes = quiet
self.idle_time_limit = 10
self.append = append
self.overwrite = overwrite
self.raw = record_raw
self.recorder = raw.Recorder() if record_raw else v2.Recorder()
self.env = env if env is not None else os.environ