Skip to content

Commit

Permalink
[v15] add missing plurals for tctl resource commands
Browse files Browse the repository at this point in the history
This is a partial backport of #49171 that just adds a couple plural
resource shortcuts that were missing.
  • Loading branch information
nklaassen committed Dec 6, 2024
1 parent d47e954 commit 1200634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/services/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func ParseShortcut(in string) (string, error) {
return types.KindKubeServer, nil
case types.KindLock, "locks":
return types.KindLock, nil
case types.KindDatabaseServer:
case types.KindDatabaseServer, "db_servers":
return types.KindDatabaseServer, nil
case types.KindNetworkRestrictions:
return types.KindNetworkRestrictions, nil
Expand All @@ -196,7 +196,7 @@ func ParseShortcut(in string) (string, error) {
return types.KindApp, nil
case types.KindAppServer, "app_servers":
return types.KindAppServer, nil
case types.KindWindowsDesktopService, "windows_service", "win_desktop_service", "win_service":
case types.KindWindowsDesktopService, "windows_service", "win_desktop_service", "win_service", "windows_desktop_services":
return types.KindWindowsDesktopService, nil
case types.KindWindowsDesktop, "win_desktop":
return types.KindWindowsDesktop, nil
Expand Down

0 comments on commit 1200634

Please sign in to comment.