def __init__( self, api, filename=None, 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
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, api, args, env=None): Command.__init__(self, args.quiet) self.api = api self.filename = args.filename self.rec_stdin = args.stdin self.command = args.command self.env_whitelist = args.env self.title = args.title self.assume_yes = args.yes or args.quiet self.idle_time_limit = args.idle_time_limit self.append = args.append self.overwrite = args.overwrite self.raw = args.raw self.recorder = raw.Recorder() if args.raw else v2.Recorder() self.env = env if env is not None else os.environ
def __init__(self, api, args, env=None): Command.__init__(self, args.quiet) self.api = api self.filename = args.filename self.rec_stdin = args.stdin self.command = args.command self.env_whitelist = args.env self.title = args.title self.assume_yes = args.yes or args.quiet self.idle_time_limit = args.idle_time_limit self.append = args.append self.overwrite = args.overwrite self.raw = args.raw self.writer = raw.writer if args.raw else v2.async_writer self.env = env if env is not None else os.environ
def __init__(self, api, filename): Command.__init__(self) self.api = api self.filename = filename
def __init__(self, filename, max_wait, player=None): Command.__init__(self) self.filename = filename self.max_wait = max_wait self.player = player if player is not None else Player()
def __init__(self, api_url, api_token): Command.__init__(self) self.api_url = api_url self.api_token = api_token
def __init__(self, filename, max_wait, speed, player=None): Command.__init__(self) self.filename = filename self.max_wait = max_wait self.speed = speed self.player = player if player is not None else Player()
def __init__(self, filename): Command.__init__(self) self.filename = filename
def __init__(self, filename, idle_time_limit, speed, player=None): Command.__init__(self) self.filename = filename self.idle_time_limit = idle_time_limit self.speed = speed self.player = player if player is not None else Player()
def __init__(self, api): Command.__init__(self) self.api = api