Files
spark/src/client/spark_api_server/RunOptions.cs
T
John Colvin ea5156122c refactor: Init ServiceContext & login outside of data sync
The login process is asynchronous, so it doesn't really fit in the
(synchronous) 'WebsocketDataSync.init' fn. This also reduces some state
in WebsocketDataSync, which is always a good thing, as it makes the
ServiceContext member readonly, and allows it to assume the user is
already logged in.
2023-03-20 13:26:41 -04:00

19 lines
532 B
C#

namespace Spark.Api.Server {
using CommandLine;
[Verb("run")]
public class RunOptions {
[Option("user", Default = CommonOptionMetadata.DEFAULT_USER)]
public string? user { get; set; }
[Option("password", Default = CommonOptionMetadata.DEFAULT_PASSWORD)]
public string? password { get; set; }
[Option(
"sparkd",
MetaValue = CommonOptionMetadata.SPARKD_META_VALUE,
HelpText = CommonOptionMetadata.SPARKD_HELP_TEXT)]
public string? sparkd { get; set; }
}
}