Skip to content

Commit ed0ee57

Browse files
committed
fix: version command lacks trailing newline
1 parent b8ea2f9 commit ed0ee57

File tree

1 file changed

+11
-1
lines changed
  • plugins/plugin-codeflare/src/controller

1 file changed

+11
-1
lines changed

Diff for: plugins/plugin-codeflare/src/controller/index.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,17 @@ export default function registerCodeflareCommands(registrar: Registrar) {
5151
(args) => import("./attach").then((_) => _.default(args)),
5252
{ flags: { boolean: ["wait"] } }
5353
)
54-
registrar.listen("/codeflare/version", () => import("@kui-shell/client/package.json").then((_) => _.version))
54+
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+
5565
registrar.listen("/codeflare/gui/guide", (args) => import("./guide").then((_) => _.default(args)), {
5666
needsUI: true,
5767
width,

0 commit comments

Comments
 (0)