File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
plugins/plugin-codeflare/src/controller Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments