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 (#920)

Change-Id: Ic1ae2b8eac3b716e24e7c4ca2b255180f84b24f3
Signed-off-by: nickboldt <nboldt@redhat.com>
  • Loading branch information
nickboldt committed Oct 11, 2020
1 parent 96ca05f commit 4435aab
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { DEFAULT_CA_CERT_FILE_NAME } from '../../constants'
export default class Export extends Command {
static description = 'Retrieves CodeReady Workspaces 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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { cheNamespace } from '../../common-flags'
export default class Open extends Command {
static description = 'Open CodeReady Workspaces 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ApiTasks } from '../../tasks/platforms/api'
export default class Debug extends Command {
static description = 'Enable local debug of CodeReady Workspaces 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
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ApiTasks } from '../../tasks/platforms/api'
export default class Delete extends Command {
static description = 'delete any CodeReady Workspaces related resource'

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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { ApiTasks } from '../../tasks/platforms/api'
export default class Logs extends Command {
static description = 'Collect CodeReady Workspaces 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
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { isOpenshiftPlatformFamily } from '../../util'
export default class Start extends Command {
static description = 'start CodeReady Workspaces 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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { ApiTasks } from '../../tasks/platforms/api'
export default class Stop extends Command {
static description = 'stop CodeReady Workspaces 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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { getImageTag, isKubernetesPlatformFamily } from '../../util'
export default class Update extends Command {
static description = 'Update CodeReady Workspaces 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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 4435aab

Please sign in to comment.