|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | import { KResponse, Registrar } from "@kui-shell/core" |
18 | | -import { MadWizardOptions, flags } from "@kui-shell/plugin-madwizard" |
| 18 | +import { MadWizardOptions, flags } from "@kui-shell/plugin-madwizard/do" |
19 | 19 |
|
20 | 20 | import { width, height } from "@kui-shell/client/config.d/style.json" |
21 | 21 |
|
@@ -64,49 +64,41 @@ export default function registerCodeflareCommands(registrar: Registrar) { |
64 | 64 | height, |
65 | 65 | }) |
66 | 66 |
|
67 | | - registrar.listen("/codeflare/reset/profile", (args) => import("./profile/reset").then((_) => _.default(args))) |
68 | | - registrar.listen("/codeflare/delete/profile", (args) => import("./profile/delete").then((_) => _.default(args))) |
69 | | - registrar.listen("/codeflare/rename/profile", (args) => import("./profile/rename").then((_) => _.default(args))) |
70 | | - |
71 | | - registrar.listen("/codeflare/get/profile", () => import("./profile/get").then((_) => _.default()), { |
72 | | - needsUI: true, |
73 | | - }) |
74 | 67 | registrar.listen("/codeflare/get/run", (args) => import("./run/get").then((_) => _.default(args)), { |
75 | 68 | needsUI: true, |
76 | 69 | outputOnly: true, |
77 | 70 | }) |
78 | 71 |
|
79 | 72 | // launch our explore guidebook |
80 | 73 | ;["ui", "explore", "explorer", "hello"].forEach((explore) => |
81 | | - registrar.listen(`/codeflare/${explore}`, (args) => import("./hello").then((_) => _.default(args)), { |
82 | | - needsUI: true, |
83 | | - outputOnly: true, |
84 | | - width, |
85 | | - height, |
86 | | - }) |
| 74 | + registrar.listen( |
| 75 | + `/codeflare/${explore}`, |
| 76 | + (args) => import("@kui-shell/plugin-madwizard").then((_) => _.hello(args)), |
| 77 | + { |
| 78 | + needsUI: true, |
| 79 | + outputOnly: true, |
| 80 | + width, |
| 81 | + height, |
| 82 | + } |
| 83 | + ) |
87 | 84 | ) |
88 | 85 |
|
89 | 86 | /** |
90 | 87 | * Launch the gallery with asciinema plays |
91 | 88 | */ |
92 | | - registrar.listen("/codeflare/gallery", () => import("./hello").then((_) => _.gallery()), { |
| 89 | + /* registrar.listen("/codeflare/gallery", () => import("./hello").then((_) => _.gallery()), { |
93 | 90 | outputOnly: true, |
94 | | - }) |
| 91 | + }) */ |
95 | 92 |
|
96 | 93 | /** |
97 | 94 | * Launch a gallery with the example dashboards |
98 | 95 | */ |
99 | | - registrar.listen("/codeflare/dashboard-gallery", (args) => import("./hello").then((_) => _.dashboardGallery(args))) |
100 | | - |
101 | | - /** UI for running profile-related tasks */ |
102 | | - registrar.listen("/codeflare/designer", (args) => import("./terminal").then((_) => _.designer(args)), { |
103 | | - needsUI: true, |
104 | | - }) |
| 96 | + // registrar.listen("/codeflare/dashboard-gallery", (args) => import("./hello").then((_) => _.dashboardGallery(args))) |
105 | 97 |
|
106 | 98 | /** Open a plain terminal */ |
107 | | - registrar.listen("/codeflare/terminal/shell", (args) => import("./terminal").then((_) => _.shell(args)), { |
| 99 | + /* registrar.listen("/codeflare/terminal/shell", (args) => import("./terminal").then((_) => _.shell(args)), { |
108 | 100 | needsUI: true, |
109 | | - }) |
| 101 | + }) */ |
110 | 102 |
|
111 | 103 | /** |
112 | 104 | * Register a catch-all command handler: any `/^codeflare/` command |
|
0 commit comments