Skip to content

Commit 7c72209

Browse files
committedFeb 7, 2023
feat: codeflare profile list/edit/delete/prune/clone commands
·
v4.12.6v2.4.0
1 parent 82928b3 commit 7c72209

File tree

5 files changed

+232
-187
lines changed

5 files changed

+232
-187
lines changed
 

‎package-lock.json

Lines changed: 203 additions & 169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -131,36 +131,36 @@
131131
}
132132
},
133133
"devDependencies": {
134-
"@kui-shell/builder": "13.0.0-dev-20230201-210938",
135-
"@kui-shell/proxy": "13.0.0-dev-20230201-210938",
136-
"@kui-shell/react": "13.0.0-dev-20230201-210938",
137-
"@kui-shell/webpack": "13.0.0-dev-20230201-210938",
134+
"@kui-shell/builder": "13.0.0-dev-20230206-114331",
135+
"@kui-shell/proxy": "13.0.0-dev-20230206-114331",
136+
"@kui-shell/react": "13.0.0-dev-20230206-114331",
137+
"@kui-shell/webpack": "13.0.0-dev-20230206-114331",
138138
"@playwright/test": "^1.30.0",
139-
"@typescript-eslint/eslint-plugin": "^5.49.0",
140-
"@typescript-eslint/parser": "^5.49.0",
139+
"@typescript-eslint/eslint-plugin": "^5.50.0",
140+
"@typescript-eslint/parser": "^5.50.0",
141141
"concurrently": "^7.6.0",
142142
"cross-env": "^7.0.3",
143-
"electron": "^22.1.0",
143+
"electron": "^22.2.0",
144144
"eslint": "^8.33.0",
145145
"husky": "^8.0.3",
146146
"lint-staged": "^13.1.0",
147147
"playwright": "^1.30.0",
148148
"prettier": "^2.8.3",
149149
"slash": "^3.0.0",
150-
"typescript": "^4.9.4"
150+
"typescript": "^4.9.5"
151151
},
152152
"dependencies": {
153153
"node-pty": "0.11.0-beta27",
154154
"@kui-shell/client": "file:./plugins/plugin-client-default",
155-
"@kui-shell/core": "13.0.0-dev-20230201-210938",
156-
"@kui-shell/plugin-bash-like": "13.0.0-dev-20230201-210938",
157-
"@kui-shell/plugin-client-common": "13.0.0-dev-20230201-210938",
155+
"@kui-shell/core": "13.0.0-dev-20230206-114331",
156+
"@kui-shell/plugin-bash-like": "13.0.0-dev-20230206-114331",
157+
"@kui-shell/plugin-client-common": "13.0.0-dev-20230206-114331",
158158
"@kui-shell/plugin-codeflare": "file:./plugins/plugin-codeflare",
159-
"@kui-shell/plugin-core-support": "13.0.0-dev-20230201-210938",
160-
"@kui-shell/plugin-electron-components": "13.0.0-dev-20230201-210938",
161-
"@kui-shell/plugin-kubectl": "13.0.0-dev-20230201-210938",
162-
"@kui-shell/plugin-madwizard": "13.0.0-dev-20230201-210938",
163-
"@kui-shell/plugin-patternfly4-themes": "13.0.0-dev-20230201-210938",
164-
"@kui-shell/plugin-proxy-support": "13.0.0-dev-20230201-210938"
159+
"@kui-shell/plugin-core-support": "13.0.0-dev-20230206-114331",
160+
"@kui-shell/plugin-electron-components": "13.0.0-dev-20230206-114331",
161+
"@kui-shell/plugin-kubectl": "13.0.0-dev-20230206-114331",
162+
"@kui-shell/plugin-madwizard": "13.0.0-dev-20230206-114331",
163+
"@kui-shell/plugin-patternfly4-themes": "13.0.0-dev-20230206-114331",
164+
"@kui-shell/plugin-proxy-support": "13.0.0-dev-20230206-114331"
165165
}
166166
}

‎plugins/plugin-codeflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@patternfly/react-core": "^4.267.6",
3737
"asciinema-player": "^3.0.1",
3838
"chokidar": "^3.5.3",
39-
"madwizard": "^5.0.8",
39+
"madwizard": "^5.2.5",
4040
"needle": "^3.2.0",
4141
"open": "^8.4.0",
4242
"pretty-bytes": "^6.0.0",

‎plugins/plugin-codeflare/src/controller/catchall.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ function assertionsFn({ team }: Pick<MadWizardOptions, "team">): Record<string,
5454
return {}
5555
}
5656

57+
export const profile = doMadwizard({
58+
task: "profile",
59+
withFilepath: false,
60+
})
61+
5762
/**
5863
* Our catch-all command handler: send to madwizard.
5964
*/

‎plugins/plugin-codeflare/src/controller/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ export default function registerCodeflareCommands(registrar: Registrar) {
105105
needsUI: true,
106106
}) */
107107

108+
registrar.catchall<KResponse, MadWizardOptions>(
109+
(argv) => argv[0] === "codeflare" && argv[1] === "profile",
110+
(args) => import("./catchall").then((_) => _.profile(args)),
111+
10
112+
)
113+
108114
/**
109115
* Register a catch-all command handler: any `/^codeflare/` command
110116
* lines, send to madwizard.

0 commit comments

Comments
 (0)
Please sign in to comment.