-
|
I am trying to consolidate my arg creation to use the If I use this pattern it is sequential but I can log all arguments I pass. string[] arguments = [ fileName, "foo" ];
Log.Debug("Calling ffmpeg with {Arguments}", arguments);
BufferedCommandResult result = await Cli.Wrap("ffmpeg")
.WithArguments(arguments)
.ExecuteBufferedAsync(cancellationToken);Is there a way to enable logging or args before process launch, or a way to e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You have two options:
var cmd = Cli.Wrap("ffmpeg").WithArguments(...);
var arguments = cmd.Arguments; // string
var result = await cmd.ExecuteBufferedAsync(...);
var arguments = new ArgumentsBuilder().Add(fileName).Add("foo").Build(); // string
var result = await Cli.Wrap("ffmpeg")
.WithArguments(arguments)
.ExecuteBufferedAsync(cancellationToken); |
Beta Was this translation helpful? Give feedback.
You have two options:
Command.Argumentsproperty:WithAguments(...):