Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit dcb7360

Browse files
authored
Remove legacy prompts (#80)
* Remove legacy tokens from configure prompt * Add help text for legacy prompts
1 parent 2447b9f commit dcb7360

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

src/Valet/Commands/Circle/Common.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public static class Common
3030

3131
public static readonly Option<string> SourceGitHubAccessToken = new(new[] { "-s", "--circle-ci-source-github-access-token" })
3232
{
33-
Description = "Access token for the source GitHub instance.",
33+
Description = "Access token for the source GitHub instance (if different than the `--github-access-token` value).",
3434
IsRequired = false,
3535
};
3636

3737
public static readonly Option<string> SourceGitHubInstanceUrl = new(new[] { "-i", "--circle-ci-source-github-instance-url" })
3838
{
39-
Description = "The URL of the source GitHub instance.",
39+
Description = "The URL of the source GitHub instance (if different than the `--github-instance-rul` value).",
4040
IsRequired = false,
4141
};
4242

src/Valet/Commands/Jenkins/Common.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static class Common
2424

2525
public static readonly Option<string> JenkinsfileAccessToken = new("--jenkinsfile-access-token")
2626
{
27-
Description = "Access token for the GitHub repo containing the job's Jenkinsfile for a pipeline.",
27+
Description = "Access token for the GitHub repo containing the job's Jenkinsfile for a pipeline (if different than the `--github-access-token` value).",
2828
IsRequired = false,
2929
};
3030

src/Valet/Commands/Travis/Common.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ public static class Common
2424

2525
public static readonly Option<string> SourceGitHubAccessToken = new(new[] { "-s", "--travis-ci-source-github-access-token" })
2626
{
27-
Description = "Access token for the source GitHub instance.",
27+
Description = "Access token for the source GitHub instance (if different than the `--github-access-token` value).",
2828
IsRequired = false,
2929
};
3030

3131
public static readonly Option<string> SourceGitHubInstanceUrl = new(new[] { "-i", "--travis-ci-source-github-instance-url" })
3232
{
33-
Description = "The URL of the source GitHub instance.",
33+
Description = "The URL of the source GitHub instance (if different than the `--github-instance-url` value).",
3434
IsRequired = false,
3535
};
3636

src/Valet/Constants.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,14 @@ public static class Constants
1717
new Variable("CIRCLE_CI_ACCESS_TOKEN", Provider.CircleCI, "Personal access token for CircleCI"),
1818
new Variable("CIRCLE_CI_INSTANCE_URL", Provider.CircleCI, "Base url of the CircleCI instance", "https://circleci.com"),
1919
new Variable("CIRCLE_CI_ORGANIZATION", Provider.CircleCI, "CircleCI organization name"),
20-
new Variable("CIRCLE_CI_SOURCE_GITHUB_ACCESS_TOKEN", Provider.CircleCI, "Personal access token to fetch source code in GitHub", "$GITHUB_ACCESS_TOKEN"),
21-
new Variable("CIRCLE_CI_SOURCE_GITHUB_INSTANCE_URL", Provider.CircleCI, "Base url of the GitHub instance containing the source code", "https://github.com"),
2220
new Variable("GITLAB_ACCESS_TOKEN", Provider.GitLabCI, "Private token for GitLab"),
2321
new Variable("GITLAB_INSTANCE_URL", Provider.GitLabCI, "Base url of the GitLab instance", "https://gitlab.com"),
2422
new Variable("JENKINS_ACCESS_TOKEN", Provider.Jenkins, "Personal access token for Jenkins"),
2523
new Variable("JENKINS_USERNAME", Provider.Jenkins, "Username of Jenkins user"),
2624
new Variable("JENKINS_INSTANCE_URL", Provider.Jenkins, "Base url of the Jenkins instance"),
27-
new Variable("JENKINSFILE_ACCESS_TOKEN", Provider.Jenkins, "Personal access token to fetch source code in GitHub", "$GITHUB_ACCESS_TOKEN"),
2825
new Variable("TRAVIS_CI_ACCESS_TOKEN", Provider.TravisCI, "Personal access token for Travis CI"),
2926
new Variable("TRAVIS_CI_INSTANCE_URL", Provider.TravisCI, "Base url of the Travis CI instance", "https://travis-ci.com"),
30-
new Variable("TRAVIS_CI_ORGANIZATION", Provider.TravisCI, "Travis CI organization name"),
31-
new Variable("TRAVIS_CI_SOURCE_GITHUB_ACCESS_TOKEN", Provider.TravisCI, "Personal access token to fetch source code in GitHub", "$GITHUB_ACCESS_TOKEN"),
32-
new Variable("TRAVIS_CI_SOURCE_GITHUB_INSTANCE_URL", Provider.TravisCI, "Base url of the GitHub instance containing the source code", "https://github.com"),
27+
new Variable("TRAVIS_CI_ORGANIZATION", Provider.TravisCI, "Travis CI organization name")
3328
};
3429

3530
public static List<string> EnvironmentVariables

0 commit comments

Comments
 (0)