Skip to content

Commit

Permalink
fix: add explicit flag type annotations per microsoft/TypeScript#29221
Browse files Browse the repository at this point in the history
…to fix downstream build

Change-Id: I9eee44451b2ed41382cda9a446c47fc5c8f39e33
Signed-off-by: nickboldt <nboldt@redhat.com>
  • Loading branch information
nickboldt committed Oct 11, 2020
1 parent c5677da commit 33d48de
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/commands/cacert/export.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
destination: string({
Expand Down
2 changes: 1 addition & 1 deletion src/commands/dashboard/open.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/devfile/generate.ts
Expand Up @@ -38,7 +38,7 @@ const EditorComponents = new Map<Editor, DevfileComponent>([
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<any> = {
help: flags.help({ char: 'h' }),
name: string({
description: 'Workspace name',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/server/debug.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
'listr-renderer': listrRenderer,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/server/delete.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
'dev-workspace-controller-namespace': devWorkspaceControllerNamespace,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/server/logs.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
'listr-renderer': listrRenderer,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/server/start.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
'listr-renderer': listrRenderer,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/server/stop.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
'dev-workspace-controller-namespace': devWorkspaceControllerNamespace,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/server/update.ts
Expand Up @@ -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<any> = {
installer: string({
char: 'a',
description: 'Installer type. If not set, default is autodetected depending on previous installation.',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workspace/create.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
devfile: string({
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workspace/delete.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
'delete-namespace': flags.boolean({
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workspace/inject.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
kubeconfig: flags.boolean({
char: 'k',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workspace/list.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
chenamespace: cheNamespace,
[CHE_API_ENDPOINT_KEY]: cheApiEndpoint,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workspace/logs.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
workspace: string({
char: 'w',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workspace/start.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
debug: flags.boolean({
char: 'd',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/workspace/stop.ts
Expand Up @@ -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<any> = {
help: flags.help({ char: 'h' }),
[CHE_API_ENDPOINT_KEY]: cheApiEndpoint,
[ACCESS_TOKEN_KEY]: accessToken,
Expand Down

0 comments on commit 33d48de

Please sign in to comment.