mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
20 lines
611 B
C#
20 lines
611 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using CommandLine;
|
|
using Wabbajack.Lib.FileUploader;
|
|
|
|
namespace Wabbajack.CLI.Verbs
|
|
{
|
|
[Verb("delete-uploaded-file", HelpText = "Delete a file you uploaded to the CDN. Cannot delete other user's files")]
|
|
public class DeleteFile : AVerb
|
|
{
|
|
[Option('n', "name", Required = true, HelpText = @"Full name (as returned by my-files) of the file")]
|
|
public string Name { get; set; }
|
|
protected override async Task<int> Run()
|
|
{
|
|
Console.WriteLine(await AuthorAPI.DeleteFile(Name));
|
|
return 0;
|
|
}
|
|
}
|
|
}
|