Skip to content

Commit

Permalink
Fix singleton check + docs for show command (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanish-kh authored Sep 11, 2023
1 parent 7133101 commit 004b6ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ choco install wingetcreate
| [New](doc/new.md) | Command for creating a new manifest from scratch |
| [Update](doc/update.md) | Command for updating an existing manifest |
| [Submit](doc/submit.md) | Command for submitting an existing PR |
| [Show](doc/show.md) | Command for displaying existing manifests |
| [Token](doc/token.md) | Command for managing cached GitHub personal access tokens |
| [Settings](doc/settings.md) | Command for editing the settings file configurations |
| [Cache](doc/cache.md) | Command for managing downloaded installers stored in cache
Expand Down
12 changes: 6 additions & 6 deletions src/WingetCreateCLI/Commands/ShowCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,17 @@ private static void DisplaySingletonManifest(SingletonManifest singletonManifest

private void ParseArgumentsAndShowManifest(Manifests manifests)
{
bool showAll = !this.ShowInstallerManifest && !this.ShowDefaultLocaleManifest && !this.ShowLocaleManifests && !this.ShowVersionManifest;

if (showAll)
if (manifests.SingletonManifest != null)
{
ShowAllManifests(manifests);
DisplaySingletonManifest(manifests.SingletonManifest);
return;
}

if (manifests.SingletonManifest != null)
bool showAll = !this.ShowInstallerManifest && !this.ShowDefaultLocaleManifest && !this.ShowLocaleManifests && !this.ShowVersionManifest;

if (showAll)
{
DisplaySingletonManifest(manifests.SingletonManifest);
ShowAllManifests(manifests);
return;
}

Expand Down

0 comments on commit 004b6ce

Please sign in to comment.