Skip to content

Concatenating file names with parameters #7

@epoberezkin

Description

@epoberezkin

@kevva Nice library, thank you.

Trying to run jpegmini with it. The syntax I need:

jpegmini -f=input_file -o=outputfile

I tried:

  • ['-f', execBuffer.input, '-o', execBuffer.output]
  • ['-f=', execBuffer.input, '-o=', execBuffer.output]
  • ['-f="', execBuffer.input, '" -o="', execBuffer.output, '"']
  • ['"-f=', execBuffer.input, '" "-o=', execBuffer.output, '"']

None of the above works with jpegmini.

Given that execBuffer.input and execBuffer.output are Symbols, I can't just use args: ['-f=' + execBuffer.input, '-o=' + execBuffer.output]

How about adding execBuffer.inputFile() and execBuffer.outputFile() that would return strings (e.g. using random uuid) that would later be replaced with actual filenames in all parameters?

Or maybe you have some better idea how to address it... I can do PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions