Skip to content

Commit 4435aab

Browse files
committed
fix: add explicit flag type annotations per microsoft/TypeScript#29221 to fix downstream build (#920)
Change-Id: Ic1ae2b8eac3b716e24e7c4ca2b255180f84b24f3 Signed-off-by: nickboldt <[email protected]>
1 parent 96ca05f commit 4435aab

File tree

16 files changed

+16
-16
lines changed

16 files changed

+16
-16
lines changed

src/commands/cacert/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { DEFAULT_CA_CERT_FILE_NAME } from '../../constants'
2222
export default class Export extends Command {
2323
static description = 'Retrieves CodeReady Workspaces self-signed certificate'
2424

25-
static flags = {
25+
static flags: flags.Input<any> = {
2626
help: flags.help({ char: 'h' }),
2727
chenamespace: cheNamespace,
2828
destination: string({

src/commands/dashboard/open.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { cheNamespace } from '../../common-flags'
1818
export default class Open extends Command {
1919
static description = 'Open CodeReady Workspaces dashboard'
2020

21-
static flags = {
21+
static flags: flags.Input<any> = {
2222
help: flags.help({ char: 'h' }),
2323
chenamespace: cheNamespace,
2424
}

src/commands/devfile/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const EditorComponents = new Map<Editor, DevfileComponent>([
3838
export default class Generate extends Command {
3939
static description = 'generate and print a devfile to stdout given some Kubernetes resources and other workspaces features (project, language-support, commands etc...)'
4040

41-
static flags = {
41+
static flags: flags.Input<any> = {
4242
help: flags.help({ char: 'h' }),
4343
name: string({
4444
description: 'Workspace name',

src/commands/server/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { ApiTasks } from '../../tasks/platforms/api'
1919
export default class Debug extends Command {
2020
static description = 'Enable local debug of CodeReady Workspaces server'
2121

22-
static flags = {
22+
static flags: flags.Input<any> = {
2323
help: flags.help({ char: 'h' }),
2424
chenamespace: cheNamespace,
2525
'listr-renderer': listrRenderer,

src/commands/server/delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { ApiTasks } from '../../tasks/platforms/api'
2424
export default class Delete extends Command {
2525
static description = 'delete any CodeReady Workspaces related resource'
2626

27-
static flags = {
27+
static flags: flags.Input<any> = {
2828
help: flags.help({ char: 'h' }),
2929
chenamespace: cheNamespace,
3030
'dev-workspace-controller-namespace': devWorkspaceControllerNamespace,

src/commands/server/logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { ApiTasks } from '../../tasks/platforms/api'
2222
export default class Logs extends Command {
2323
static description = 'Collect CodeReady Workspaces logs'
2424

25-
static flags = {
25+
static flags: flags.Input<any> = {
2626
help: flags.help({ char: 'h' }),
2727
chenamespace: cheNamespace,
2828
'listr-renderer': listrRenderer,

src/commands/server/start.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { isOpenshiftPlatformFamily } from '../../util'
3333
export default class Start extends Command {
3434
static description = 'start CodeReady Workspaces server'
3535

36-
static flags = {
36+
static flags: flags.Input<any> = {
3737
help: flags.help({ char: 'h' }),
3838
chenamespace: cheNamespace,
3939
'listr-renderer': listrRenderer,

src/commands/server/stop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { ApiTasks } from '../../tasks/platforms/api'
1818
export default class Stop extends Command {
1919
static description = 'stop CodeReady Workspaces server'
2020

21-
static flags = {
21+
static flags: flags.Input<any> = {
2222
help: flags.help({ char: 'h' }),
2323
chenamespace: cheNamespace,
2424
'dev-workspace-controller-namespace': devWorkspaceControllerNamespace,

src/commands/server/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { getImageTag, isKubernetesPlatformFamily } from '../../util'
3030
export default class Update extends Command {
3131
static description = 'Update CodeReady Workspaces server.'
3232

33-
static flags = {
33+
static flags: flags.Input<any> = {
3434
installer: string({
3535
char: 'a',
3636
description: 'Installer type. If not set, default is autodetected depending on previous installation.',

src/commands/workspace/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN
2222
export default class Create extends Command {
2323
static description = 'Creates a workspace from a devfile'
2424

25-
static flags = {
25+
static flags: flags.Input<any> = {
2626
help: flags.help({ char: 'h' }),
2727
chenamespace: cheNamespace,
2828
devfile: string({

src/commands/workspace/delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN
2020
export default class Delete extends Command {
2121
static description = 'delete a stopped workspace - use workspace:stop to stop the workspace before deleting it'
2222

23-
static flags = {
23+
static flags: flags.Input<any> = {
2424
help: flags.help({ char: 'h' }),
2525
chenamespace: cheNamespace,
2626
'delete-namespace': flags.boolean({

src/commands/workspace/inject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { getClusterClientCommand, OPENSHIFT_CLI } from '../../util'
2626
export default class Inject extends Command {
2727
static description = 'inject configurations and tokens in a workspace'
2828

29-
static flags = {
29+
static flags: flags.Input<any> = {
3030
help: flags.help({ char: 'h' }),
3131
kubeconfig: flags.boolean({
3232
char: 'k',

src/commands/workspace/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN
1919
export default class List extends Command {
2020
static description = 'list workspaces'
2121

22-
static flags = {
22+
static flags: flags.Input<any> = {
2323
help: flags.help({ char: 'h' }),
2424
chenamespace: cheNamespace,
2525
[CHE_API_ENDPOINT_KEY]: cheApiEndpoint,

src/commands/workspace/logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { skipKubeHealthzCheck } from '../../common-flags'
2020
export default class Logs extends Command {
2121
static description = 'Collect workspace(s) logs'
2222

23-
static flags = {
23+
static flags: flags.Input<any> = {
2424
help: flags.help({ char: 'h' }),
2525
workspace: string({
2626
char: 'w',

src/commands/workspace/start.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN
2020
export default class Start extends Command {
2121
static description = 'Starts a workspace'
2222

23-
static flags = {
23+
static flags: flags.Input<any> = {
2424
help: flags.help({ char: 'h' }),
2525
debug: flags.boolean({
2626
char: 'd',

src/commands/workspace/stop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { accessToken, ACCESS_TOKEN_KEY, cheApiEndpoint, cheNamespace, CHE_API_EN
2020
export default class Stop extends Command {
2121
static description = 'Stop a running workspace'
2222

23-
static flags = {
23+
static flags: flags.Input<any> = {
2424
help: flags.help({ char: 'h' }),
2525
[CHE_API_ENDPOINT_KEY]: cheApiEndpoint,
2626
[ACCESS_TOKEN_KEY]: accessToken,

0 commit comments

Comments
 (0)