public void Configure(IArgumentsBuilder argumentsBuilder)
        {
            argumentsBuilder.AddRequired("h", "host-name", () => this.HostName, hostName => this.HostName          = hostName, "Specifies the TeamCity host name");
            argumentsBuilder.AddRequired("b", "build-type-id", () => this.BuildTypeId, buildId => this.BuildTypeId = buildId, "Specifies the TeamCity build type id");
            argumentsBuilder.AddOptional("c", "credentials", this.Credentials, () => new CredentialOptions(null, null), options => this.Credentials = options, "Specifies the credentials to connect to TeamCity");
            var refreshIntervalRange = new Range <TimeSpan>(TimeSpan.FromMilliseconds(200), TimeSpan.FromMinutes(10));

            argumentsBuilder.AddOptional(
                "ri",
                "refresh-interval",
                () => refreshIntervalRange.Limit(this.RefreshInterval).ToString(),
                value => this.RefreshInterval = refreshIntervalRange.Limit(TimeSpan.Parse(value)),
                $"The refresh interval within the {refreshIntervalRange}");
            argumentsBuilder.AddOptionalList("d", "devices", this.hidDeviceIds, "The list of hid device ids", true);
        }
 public void Configure(IArgumentsBuilder argumentsBuilder)
 {
     argumentsBuilder.AddRequired("a", "arguments", this.RunOptions, () => new RunOptions(null, null), value => this.RunOptions = value, "The arguments to use for the installed service.");
     argumentsBuilder.AddSwitch("s", "start", this.Start, value => this.Start = value, "Starts the service after installation.");
 }
예제 #3
0
 public void Configure(IArgumentsBuilder argumentsBuilder)
 {
     argumentsBuilder.AddRequired("u", "username", () => this.UserName, userName => this.UserName = userName, "Specifies the username");
     argumentsBuilder.AddRequired("p", "password", () => this.Password, password => this.Password = password, "Specifies the password");
 }
 public void Configure(IArgumentsBuilder argumentsBuilder)
 {
     argumentsBuilder.AddRequired("b", "build-type-id", () => this.BuildTypeId, buildId => this.BuildTypeId = buildId, "Specifies the TeamCity build type id");
 }