mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-04-30 01:52:50 +08:00
21 lines
497 B
C#
21 lines
497 B
C#
using Spectre.Console.Cli;
|
|
|
|
namespace YourSolution.AdmServer.Host;
|
|
|
|
/// <summary>
|
|
/// 命令行参数
|
|
/// </summary>
|
|
public sealed class CommandLineArgs : CommandSettings
|
|
{
|
|
/// <summary>
|
|
/// 插入种子数据
|
|
/// </summary>
|
|
[CommandOption("-i|--insert-seed-data")]
|
|
public bool InsertSeedData { get; init; }
|
|
|
|
/// <summary>
|
|
/// 同步数据库结构
|
|
/// </summary>
|
|
[CommandOption("-s|--sync-structure")]
|
|
public bool SyncStructure { get; init; }
|
|
} |