Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add explicit flag type annotations per microsoft/TypeScript#29221 to fix downstream build #921

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
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 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
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 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
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { getCommandSuccessMessage, initializeContext } from '../../util'
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
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 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
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { getCommandSuccessMessage, initializeContext, isOpenshiftPlatformFamily
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { getCommandSuccessMessage, initializeContext } from '../../util'
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { getCommandSuccessMessage, getImageTag, initializeContext, isKubernetesP
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
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