Skip to content

Set options like flat, timeout and ignore during export #66

@JoryUK

Description

@JoryUK

During export a single image failed due to the 10 second default timeout, I would like the ability to set the timeout or ignore parameters (or really any of these other options)

Passing it in via the available parameters either causes an error or gets ignored but passing --timeout via the cli command does seem to obey it

Arguments:
  path  <directory> with LikeC4 sources (default is current directory)                           [string] [default: "."]

Options:
  -o, --output                  <directory> output directory                                                    [string]
      --theme                   color-scheme to use, default is light                         [choices: "light", "dark"]
      --flat                    flatten all images in output directory ignoring sources structure              [boolean]
      --use-dot, --use-dot-bin  use graphviz binaries ("dot" should be on PATH)               [boolean] [default: false]
  -f, --filter                  include views with ids matching given patterns
                                multiple patterns are combined with OR                                           [array]
  -i, --ignore                  continue if export fails for some views                                        [boolean]
  -t, --timeout                 timeout for playwright                                            [number] [default: 10]
      --max-attempts            max attempts to export failing view, 1 means no retry              [number] [default: 3]
      --server-url              use this url instead of starting new likec4 server                              [string]
      --chromium-sandbox        enable/disable chromium sandbox
                                see Playwright docs                                           [boolean] [default: false]
  -v, --version, --version      Show version number                                                            [boolean]
  -h, --help, --help            Show help                                                                      [boolean]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions