Skip to content

Commit

Permalink
Merge #3300 Greeting for ckan prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Feb 25, 2021
2 parents f9f831f + 09c29e9 commit a1ebd2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
- [GUI] language: fr-FR (#3272, #3285 by: vinix38; reviewed: HebaruSan)
- [ConsoleUI] Dark theme for ConsoleUI (#3226 by: HebaruSan; reviewed: DasSkelett)
- [GUI] Visual cues for incompatibility reasons (#3271 by: HebaruSan; reviewed: DasSkelett)
- [CLI] Greeting for ckan prompt (#3300 by: HebaruSan; reviewed: DasSkelett)

### Bugfixes

Expand Down
8 changes: 8 additions & 0 deletions Cmdline/Action/Prompt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ public Prompt() { }
public int RunCommand(GameInstanceManager manager, object raw_options)
{
CommonOptions opts = raw_options as CommonOptions;
// Print an intro if not in headless mode
if (!(opts?.Headless ?? false))
{
Console.WriteLine("Welcome to CKAN!");
Console.WriteLine("");
Console.WriteLine("To get help, type help and press enter.");
Console.WriteLine("");
}
bool done = false;
while (!done)
{
Expand Down

0 comments on commit a1ebd2d

Please sign in to comment.