We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8ea2f9 commit ed0ee57Copy full SHA for ed0ee57
plugins/plugin-codeflare/src/controller/index.ts
@@ -51,7 +51,17 @@ export default function registerCodeflareCommands(registrar: Registrar) {
51
(args) => import("./attach").then((_) => _.default(args)),
52
{ flags: { boolean: ["wait"] } }
53
)
54
- registrar.listen("/codeflare/version", () => import("@kui-shell/client/package.json").then((_) => _.version))
+
55
+ registrar.listen("/codeflare/version", (args) =>
56
+ import("@kui-shell/client/package.json").then((_) => {
57
+ if (!args.execOptions.type) {
58
+ return _.version + "\n"
59
+ } else {
60
+ return _.version
61
+ }
62
+ })
63
+ )
64
65
registrar.listen("/codeflare/gui/guide", (args) => import("./guide").then((_) => _.default(args)), {
66
needsUI: true,
67
width,
0 commit comments