mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-04 03:23:05 -06:00
Add stub 'list' command that errors with help text when executed
Agent-Logs-Url: https://github.com/Tyrrrz/DiscordChatExporter/sessions/b148b0cc-7ec8-4fa1-bbd6-36dfd116ceec Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
parent
0e3b455655
commit
f3638ecbdd
16
DiscordChatExporter.Cli/Commands/ListCommand.cs
Normal file
16
DiscordChatExporter.Cli/Commands/ListCommand.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.Threading.Tasks;
|
||||
using CliFx;
|
||||
using CliFx.Binding;
|
||||
using CliFx.Infrastructure;
|
||||
|
||||
namespace DiscordChatExporter.Cli.Commands;
|
||||
|
||||
[Command("list", Description = "Lists channels, DMs, or servers.")]
|
||||
public partial class ListCommand : ICommand
|
||||
{
|
||||
public ValueTask ExecuteAsync(IConsole console) =>
|
||||
throw new CommandException(
|
||||
"A subcommand is required ('channels', 'channels dm', or 'guilds').",
|
||||
showHelp: true
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue