MCPcopy
hub / github.com/SBoudrias/Inquirer.js / edit

Function edit

packages/external-editor/src/index.ts:37–39  ·  view source on GitHub ↗
(text: string = '', fileOptions?: FileOptions)

Source from the content-addressed store, hash-verified

35export { CreateFileError, LaunchEditorError, ReadFileError, RemoveFileError };
36
37export function edit(text: string = '', fileOptions?: FileOptions): string {
38 return new ExternalEditor(text, fileOptions).run();
39}
40
41type EditAsync = {
42 /** @deprecated Use editAsync(text, options) returning a Promise instead */

Callers 1

index.test.tsFile · 0.90

Calls 1

runMethod · 0.65

Tested by

no test coverage detected