2019-12-26 23:01:54 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-09-27 16:21:33 -04:00
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using BuildAgent.Workspace.Common;
|
|
|
|
|
using Tools.DotNETCommon;
|
|
|
|
|
|
|
|
|
|
namespace BuildAgent.Workspace
|
|
|
|
|
{
|
|
|
|
|
[ProgramMode("Setup", "Creates or updates a client to use a given stream")]
|
|
|
|
|
class SetupMode : WorkspaceMode
|
|
|
|
|
{
|
|
|
|
|
[CommandLine("-Client=", Required = true)]
|
|
|
|
|
[Description("Name of the client to create")]
|
|
|
|
|
string ClientName = null;
|
|
|
|
|
|
|
|
|
|
[CommandLine("-Stream=", Required = true)]
|
|
|
|
|
[Description("Name of the stream to configure")]
|
|
|
|
|
string StreamName = null;
|
|
|
|
|
|
|
|
|
|
protected override void Execute(Repository Repo)
|
|
|
|
|
{
|
|
|
|
|
Repo.Setup(ClientName, StreamName);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|