aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-12-18 17:24:16 -0600
committerGitHub <noreply@github.com>2024-12-18 17:24:16 -0600
commitb18f7b00bc1d438bfa78ff16cb1badf6fe255e97 (patch)
treee278cb305877999c42c134565c195d6990b5f8a4 /src/slskd/Core/Options.cs
parentcfcdeff46861cdd11a5cbafe533ce08bda584566 (diff)
parent727ea41ebca3b3e7d032d6c54451b4af4ab78a82 (diff)
downloadslskd-b18f7b00bc1d438bfa78ff16cb1badf6fe255e97.tar.gz
Merge pull request #1262 from slskd/api-only
Add 'headless' mode
Diffstat (limited to 'src/slskd/Core/Options.cs')
-rw-r--r--src/slskd/Core/Options.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 32188aef..ff9cc407 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -152,6 +152,15 @@ namespace slskd
public bool Debug { get; init; } = Debugger.IsAttached;
/// <summary>
+ /// Gets a value indicating whether the application should run in headless (no web UI) mode.
+ /// </summary>
+ [Argument('H', "headless")]
+ [EnvironmentVariable("HEADLESS")]
+ [Description("run in headless (no web UI) mode")]
+ [RequiresRestart]
+ public bool Headless { get; init; } = false;
+
+ /// <summary>
/// Gets a value indicating whether remote configuration of options is allowed.
/// </summary>
[Argument(default, "remote-configuration")]