mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2024-09-19 12:18:48 -04:00
Add a note about interactivity in the CLI
This commit is contained in:
parent
c875f8f4f0
commit
7c014bf64d
1 changed files with 11 additions and 0 deletions
|
@ -48,6 +48,17 @@ public abstract class DiscordCommandBase : ICommand
|
||||||
}
|
}
|
||||||
#pragma warning restore CS0618
|
#pragma warning restore CS0618
|
||||||
|
|
||||||
|
// Note about interactivity
|
||||||
|
if (console.IsOutputRedirected)
|
||||||
|
{
|
||||||
|
console
|
||||||
|
.Output
|
||||||
|
.WriteLine(
|
||||||
|
"Note: Output streams are redirected, rich console interactions are disabled. "
|
||||||
|
+ "If you are running this command in Docker, consider allocating a pseudo-terminal for better user experience (docker run -it ...)."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return default;
|
return default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue