exec-buffer icon indicating copy to clipboard operation
exec-buffer copied to clipboard

Concatenating file names with parameters

Open epoberezkin opened this issue 8 years ago • 0 comments

@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.

epoberezkin avatar May 10 '17 21:05 epoberezkin