mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
Slightly better naming
This commit is contained in:
parent
a2c5d2e2dd
commit
8e36002ae7
|
|
@ -48,7 +48,7 @@ public abstract class DiscordCommandBase : ICommand
|
||||||
#pragma warning restore CS0618
|
#pragma warning restore CS0618
|
||||||
|
|
||||||
// Note about interactivity for Docker
|
// Note about interactivity for Docker
|
||||||
if (console.IsOutputRedirected && Docker.IsRunningInDocker)
|
if (console.IsOutputRedirected && Docker.IsRunningInContainer)
|
||||||
{
|
{
|
||||||
console.Error.WriteLine(
|
console.Error.WriteLine(
|
||||||
"Note: Output streams are redirected, rich console interactions are disabled. "
|
"Note: Output streams are redirected, rich console interactions are disabled. "
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,6 @@ namespace DiscordChatExporter.Core.Utils;
|
||||||
|
|
||||||
public static class Docker
|
public static class Docker
|
||||||
{
|
{
|
||||||
public static bool IsRunningInDocker { get; } =
|
public static bool IsRunningInContainer { get; } =
|
||||||
Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") == "true";
|
Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") == "true";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue