How to use the asciinema.commands.command.Command.__init__ function in asciinema

To help you get started, we’ve selected a few asciinema examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github timhsutw / honeyterm / honeyterm_asciinema / asciinema / asciinema / commands / record.py View on Github external
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()
github asciinema / asciinema / asciinema / commands / auth.py View on Github external
def __init__(self, args, config, env):
        Command.__init__(self, args, config, env)
github vsoch / helpme / helpme / action / record.py View on Github external
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