Move to separate files

This commit is contained in:
Malte Rosenbjerg 2020-06-18 21:37:12 +02:00
parent 552b5d811a
commit 01d4474595

View file

@ -1,8 +1,6 @@
using System; using System;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace FFMpegCore.Arguments namespace FFMpegCore.Arguments
{ {
@ -38,26 +36,4 @@ public void Pre()
public string Text => string.Join(" ", FilePaths.Select(v => $"-i \"{v}\"")); public string Text => string.Join(" ", FilePaths.Select(v => $"-i \"{v}\""));
} }
public interface IArgument
{
/// <summary>
/// The textual representation of the argument
/// </summary>
string Text { get; }
}
public interface IInputOutputArgument : IArgument
{
void Pre() {}
Task During(CancellationToken? cancellationToken = null) => Task.CompletedTask;
void Post() {}
}
public interface IInputArgument : IInputOutputArgument
{
}
public interface IOutputArgument : IInputOutputArgument
{
}
} }