From 911135e66ccc49a44f3708d31853bbeda6296e23 Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Mon, 11 May 2020 12:36:16 -0400 Subject: [PATCH] add help info for '--labels' (#472) --- src/Runner.Listener/Runner.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Runner.Listener/Runner.cs b/src/Runner.Listener/Runner.cs index bcc982eda..2fd57d23c 100644 --- a/src/Runner.Listener/Runner.cs +++ b/src/Runner.Listener/Runner.cs @@ -466,6 +466,7 @@ Config Options: --url string Repository to add the runner to. Required if unattended --token string Registration token. Required if unattended --name string Name of the runner to configure (default {Environment.MachineName ?? "myrunner"}) + --labels string Extra labels in addition to the default: 'self-hosted,{Constants.Runner.Platform},{Constants.Runner.PlatformArchitecture}' --work string Relative runner work directory (default {Constants.Path.WorkDirectory}) --replace Replace any existing runner with the same name (default false)"); #if OS_WINDOWS @@ -478,7 +479,9 @@ Examples: Configure a runner non-interactively: .{separator}config.{ext} --unattended --url --token Configure a runner non-interactively, replacing any existing runner with the same name: - .{separator}config.{ext} --unattended --url --token --replace [--name ]"); + .{separator}config.{ext} --unattended --url --token --replace [--name ] + Configure a runner non-interactively with three extra labels: + .{separator}config.{ext} --unattended --url --token --labels L1,L2,L3"); #if OS_WINDOWS _term.WriteLine($@" Configure a runner to run as a service:"); _term.WriteLine($@" .{separator}config.{ext} --url --token --runasservice");