mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-25 02:13:27 -04:00
Make fields readonly Remove unnecessary casts Format document Remove unnecessary usings Sort usings Use file-level namespaces Order modifiers
22 lines
550 B
C#
22 lines
550 B
C#
using CommandLine;
|
|
using LibationFileManager;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LibationCli;
|
|
|
|
[Verb("convert", HelpText = "Convert mp4 to mp3.")]
|
|
public class ConvertOptions : ProcessableOptionsBase
|
|
{
|
|
protected override Task ProcessAsync()
|
|
{
|
|
if (AudibleFileStorage.BooksDirectory is null)
|
|
{
|
|
Console.Error.WriteLine("Error: Books directory is not set. Please configure the 'Books' setting in Settings.json.");
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
return RunAsync(CreateProcessable<FileLiberator.ConvertToMp3>());
|
|
}
|
|
}
|