Skip to content

Add ability to export multiple files from CLI arguments #2433

Description

@USSX-Hares
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
Currently, if you need export files provided by mask (i.e., task1-*.drawio), you need to use ls <pattern> | xargs drawio <args> syntax, which isn't pretty and requires drawio app to load every time.

Describe the solution you'd like
Passing multiple arguments will reduce export time significantly as, for small documents, it is shorter than boot time.

Desireable CLI API:

Usage: drawio [options] [input file/folder]...

$ drawio --export task1-*.drawio
$ drawio --export file1.drawio file2.drawio file3.drawio

Passing multiple files should work similarly as passing directory name.

Describe alternatives you've considered
Alternatives considered:

  1. ls | xargs (described above)
  2. Passing directory as an argument -- renders all documents in the directory, including ones not needed to be updated
  3. Makefile -- looks like an overkill

Additional context
Also, xargs not present on Windows.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions