From 33d48dea864811208c293135897ebe0e7f0781d2 Mon Sep 17 00:00:00 2001 From: nickboldt Date: Sun, 11 Oct 2020 15:07:23 -0400 Subject: [PATCH] fix: add explicit flag type annotations per https://github.com/microsoft/TypeScript/issues/29221 to fix downstream build Change-Id: I9eee44451b2ed41382cda9a446c47fc5c8f39e33 Signed-off-by: nickboldt --- src/commands/cacert/export.ts | 2 +- src/commands/dashboard/open.ts | 2 +- src/commands/devfile/generate.ts | 2 +- src/commands/server/debug.ts | 2 +- src/commands/server/delete.ts | 2 +- src/commands/server/logs.ts | 2 +- src/commands/server/start.ts | 2 +- src/commands/server/stop.ts | 2 +- src/commands/server/update.ts | 2 +- src/commands/workspace/create.ts | 2 +- src/commands/workspace/delete.ts | 2 +- src/commands/workspace/inject.ts | 2 +- src/commands/workspace/list.ts | 2 +- src/commands/workspace/logs.ts | 2 +- src/commands/workspace/start.ts | 2 +- src/commands/workspace/stop.ts | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/commands/cacert/export.ts b/src/commands/cacert/export.ts index 68e58fa62..6d846d73c 100644 --- a/src/commands/cacert/export.ts +++ b/src/commands/cacert/export.ts @@ -22,7 +22,7 @@ import { DEFAULT_CA_CERT_FILE_NAME } from '../../constants' export default class Export extends Command { static description = 'Retrieves Eclipse Che self-signed certificate' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, destination: string({ diff --git a/src/commands/dashboard/open.ts b/src/commands/dashboard/open.ts index 6acb8b68b..216386164 100644 --- a/src/commands/dashboard/open.ts +++ b/src/commands/dashboard/open.ts @@ -18,7 +18,7 @@ import { cheNamespace } from '../../common-flags' export default class Open extends Command { static description = 'Open Eclipse Che dashboard' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, } diff --git a/src/commands/devfile/generate.ts b/src/commands/devfile/generate.ts index 6b38e6720..8910b8a0b 100644 --- a/src/commands/devfile/generate.ts +++ b/src/commands/devfile/generate.ts @@ -38,7 +38,7 @@ const EditorComponents = new Map([ export default class Generate extends Command { static description = 'generate and print a devfile to stdout given some Kubernetes resources and other workspaces features (project, language-support, commands etc...)' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), name: string({ description: 'Workspace name', diff --git a/src/commands/server/debug.ts b/src/commands/server/debug.ts index b626431d1..81e3293d0 100644 --- a/src/commands/server/debug.ts +++ b/src/commands/server/debug.ts @@ -19,7 +19,7 @@ import { ApiTasks } from '../../tasks/platforms/api' export default class Debug extends Command { static description = 'Enable local debug of Eclipse Che server' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, 'listr-renderer': listrRenderer, diff --git a/src/commands/server/delete.ts b/src/commands/server/delete.ts index 82557e9e3..201f487df 100644 --- a/src/commands/server/delete.ts +++ b/src/commands/server/delete.ts @@ -26,7 +26,7 @@ import { ApiTasks } from '../../tasks/platforms/api' export default class Delete extends Command { static description = 'delete any Eclipse Che related resource: Kubernetes/OpenShift/Helm' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, 'dev-workspace-controller-namespace': devWorkspaceControllerNamespace, diff --git a/src/commands/server/logs.ts b/src/commands/server/logs.ts index abbc9c2b3..83db2f1fb 100644 --- a/src/commands/server/logs.ts +++ b/src/commands/server/logs.ts @@ -22,7 +22,7 @@ import { ApiTasks } from '../../tasks/platforms/api' export default class Logs extends Command { static description = 'Collect Eclipse Che logs' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, 'listr-renderer': listrRenderer, diff --git a/src/commands/server/start.ts b/src/commands/server/start.ts index 7ada7c23f..0a5e02425 100644 --- a/src/commands/server/start.ts +++ b/src/commands/server/start.ts @@ -33,7 +33,7 @@ import { isOpenshiftPlatformFamily } from '../../util' export default class Start extends Command { static description = 'start Eclipse Che server' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, 'listr-renderer': listrRenderer, diff --git a/src/commands/server/stop.ts b/src/commands/server/stop.ts index 08eccf33d..d83a67475 100644 --- a/src/commands/server/stop.ts +++ b/src/commands/server/stop.ts @@ -18,7 +18,7 @@ import { ApiTasks } from '../../tasks/platforms/api' export default class Stop extends Command { static description = 'stop Eclipse Che server' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, 'dev-workspace-controller-namespace': devWorkspaceControllerNamespace, diff --git a/src/commands/server/update.ts b/src/commands/server/update.ts index 650fceda7..8bb3a188a 100644 --- a/src/commands/server/update.ts +++ b/src/commands/server/update.ts @@ -30,7 +30,7 @@ import { getImageTag, isKubernetesPlatformFamily } from '../../util' export default class Update extends Command { static description = 'Update Eclipse Che server.' - static flags = { + static flags: flags.Input = { installer: string({ char: 'a', description: 'Installer type. If not set, default is autodetected depending on previous installation.', diff --git a/src/commands/workspace/create.ts b/src/commands/workspace/create.ts index a4e463eef..f5b7fbf72 100644 --- a/src/commands/workspace/create.ts +++ b/src/commands/workspace/create.ts @@ -22,7 +22,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN export default class Create extends Command { static description = 'Creates a workspace from a devfile' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, devfile: string({ diff --git a/src/commands/workspace/delete.ts b/src/commands/workspace/delete.ts index 4352ff56a..fb6096b10 100644 --- a/src/commands/workspace/delete.ts +++ b/src/commands/workspace/delete.ts @@ -20,7 +20,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN export default class Delete extends Command { static description = 'delete a stopped workspace - use workspace:stop to stop the workspace before deleting it' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, 'delete-namespace': flags.boolean({ diff --git a/src/commands/workspace/inject.ts b/src/commands/workspace/inject.ts index 4b587826f..1f39e1e89 100644 --- a/src/commands/workspace/inject.ts +++ b/src/commands/workspace/inject.ts @@ -26,7 +26,7 @@ import { getClusterClientCommand, OPENSHIFT_CLI } from '../../util' export default class Inject extends Command { static description = 'inject configurations and tokens in a workspace' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), kubeconfig: flags.boolean({ char: 'k', diff --git a/src/commands/workspace/list.ts b/src/commands/workspace/list.ts index f045e672a..4973e6049 100644 --- a/src/commands/workspace/list.ts +++ b/src/commands/workspace/list.ts @@ -19,7 +19,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN export default class List extends Command { static description = 'list workspaces' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), chenamespace: cheNamespace, [CHE_API_ENDPOINT_KEY]: cheApiEndpoint, diff --git a/src/commands/workspace/logs.ts b/src/commands/workspace/logs.ts index 62a7602ec..412959171 100644 --- a/src/commands/workspace/logs.ts +++ b/src/commands/workspace/logs.ts @@ -20,7 +20,7 @@ import { skipKubeHealthzCheck } from '../../common-flags' export default class Logs extends Command { static description = 'Collect workspace(s) logs' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), workspace: string({ char: 'w', diff --git a/src/commands/workspace/start.ts b/src/commands/workspace/start.ts index a7d770721..f3b7be7c4 100644 --- a/src/commands/workspace/start.ts +++ b/src/commands/workspace/start.ts @@ -20,7 +20,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN export default class Start extends Command { static description = 'Starts a workspace' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), debug: flags.boolean({ char: 'd', diff --git a/src/commands/workspace/stop.ts b/src/commands/workspace/stop.ts index 0f8baa2ba..2f0abe30d 100644 --- a/src/commands/workspace/stop.ts +++ b/src/commands/workspace/stop.ts @@ -20,7 +20,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN export default class Stop extends Command { static description = 'Stop a running workspace' - static flags = { + static flags: flags.Input = { help: flags.help({ char: 'h' }), [CHE_API_ENDPOINT_KEY]: cheApiEndpoint, [ACCESS_TOKEN_KEY]: accessToken,