Remove runner flow: Change from PAT to "deletion token" in prompt (#225)

* Updating prompt deletion token

Currently if you leave the token off the command, we're showing "Enter your personal access token:"

Which won't work. This updates prompt to "deletion token"

* Call correct function in test

* Fix command text in test
This commit is contained in:
Mike Coutermarsh
2019-12-15 18:38:42 -08:00
committed by Tingluo Huang
parent 9bbbca9e5d
commit d778f13dee
3 changed files with 37 additions and 1 deletions

View File

@@ -224,6 +224,15 @@ namespace GitHub.Runner.Listener
validator: Validators.NonEmptyValidator);
}
public string GetRunnerDeletionToken()
{
return GetArgOrPrompt(
name: Constants.Runner.CommandLine.Args.Token,
description: "Enter runner deletion token:",
defaultValue: string.Empty,
validator: Validators.NonEmptyValidator);
}
public string GetUrl(bool suppressPromptIfEmpty = false)
{
// Note, GetArg does not consume the arg (like GetArgOrPrompt does).