Skip to content

Commit fe4811f

Browse files
authored
Add feedback link to main help menu (#49)
Adds the feedback board link only to the root help menu. This also re-enables all of the descriptions for each command at the top of the command or sub-command help menu.
1 parent 51eab84 commit fe4811f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/ActionsImporter/Program.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
new ConfigurationService()
1616
);
1717

18-
var command = new RootCommand("GitHub Actions Importer is a tool to help plan and automate your migration to Actions.")
18+
string welcomeMessage = @"GitHub Actions Importer helps you plan, test, and automate your migration to GitHub Actions.
19+
20+
Please share your feedback @ https://gh.io/ghaimporterfeedback";
21+
22+
var command = new RootCommand(welcomeMessage)
1923
{
2024
new Update().Command(app),
2125
new Version().Command(app),
@@ -31,8 +35,8 @@
3135
{
3236
ctx.HelpBuilder.CustomizeLayout(_ =>
3337
HelpBuilder.Default
34-
.GetLayout()
35-
.Skip(2)
38+
.GetLayout()
39+
.Where((_, i) => i != 1) // Remove the usage section (second item in the help layout)
3640
);
3741
})
3842
.UseEnvironmentVariableDirective()

0 commit comments

Comments
 (0)