How to use the @kui-shell/plugin-editor.respondToRepl function in @kui-shell/plugin-editor

To help you get started, we’ve selected a few @kui-shell/plugin-editor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IBM / kui / plugins / plugin-openwhisk-editor-extensions / src / lib / cmds / compose.ts View on Github external
isNew: true,
        ast,
        persister
      }
    })

  //
  // otherwise, open the in-Shell editor
  // then update the editor to show the placeholder action
  // then send a response back to the repl
  //
  return betterNotExist(name, options)
    .then(() => Promise.all([makeAction(), openEditor(tab, name, options, execOptions)]))
    .then(prepareEditorWithAction)
    .then(addWskflow(tab))
    .then(respondToRepl(undefined, ['is-modified']))
}
github IBM / kui / plugins / plugin-openwhisk-editor-extensions / src / lib / cmds / new.ts View on Github external
exec: { kind, prettyKind, code },
        isNew: true,
        ast,
        persister
      }
    })

  //
  // otherwise, open the in-Shell editor
  // then update the editor to show the placeholder action
  // then send a response back to the repl
  //
  return betterNotExist(name, options)
    .then(() => Promise.all([makeAction(), openEditor(tab, name, options, execOptions)]))
    .then(prepareEditorWithAction)
    .then(respondToRepl(undefined, ['is-modified']))
}