29 lines
703 B
C#
29 lines
703 B
C#
|
|
// Copyright (c) The Geekeey Authors
|
|||
|
|
// SPDX-License-Identifier: EUPL-1.2
|
|||
|
|
|
|||
|
|
using System.CommandLine;
|
|||
|
|
|
|||
|
|
using Geekeey.Actions.Core.Commands;
|
|||
|
|
|
|||
|
|
namespace Geekeey.Actions.Core;
|
|||
|
|
|
|||
|
|
internal sealed class Program : RootCommand
|
|||
|
|
{
|
|||
|
|
#pragma warning disable format // @formatter:off
|
|||
|
|
public static readonly Option<Uri> Server = new("--server") { Required = true, Recursive = true };
|
|||
|
|
public static readonly Option<string> Token = new("--token") { Required = true, Recursive = true };
|
|||
|
|
#pragma warning restore format // @formatter:on
|
|||
|
|
|
|||
|
|
private Program()
|
|||
|
|
{
|
|||
|
|
Add(Server);
|
|||
|
|
Add(Token);
|
|||
|
|
|
|||
|
|
Add(new Checkout());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private static Task<int> Main(string[] args)
|
|||
|
|
{
|
|||
|
|
return new Program().Parse(args).InvokeAsync();
|
|||
|
|
}
|
|||
|
|
}
|