blob: 1a3e97f2071ba70ad5195b8dc85d765bbbe13fb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System.Runtime.InteropServices;
using System.Threading.Channels;
using Grpc.Net.Client;
using marlin.agents.shell;
using marlin.core.functional;
using marlin.core.models;
using marlin.core.models.meta;
using marlin.core.models.plan;
using marlin.core.util;
using ProtoBuf.Grpc.Client;
DotNetEnv.Env.NoClobber().TraversePath().Load();
if (args.Length == 0)
{
SlaveLoop loop = new();
await loop.Start();
}
else
{
string recipe = args[0];
string repoPath = args.Length > 1 ? args[1] : Environment.CurrentDirectory;
JobUnitOfWork uow = new(new LocalInstanceService(), repoPath, recipe);
await uow.Run();
}
|