Skip to content

Commit fb280c0

Browse files
committed
feat: add stderr component
1 parent f92d85c commit fb280c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/library.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export const createCommandNotFound = (command, notFoundText = 'command not found
2525
return createStdout(text, name)
2626
}
2727

28+
// Creates a "stderr" with the given formatter or text and name. It exits as
29+
// soon as the component has been mounted
30+
export const createStderr = (formatterOrText, name = 'VueCommandSterr') => {
31+
return createStdout(formatterOrText, name)
32+
}
33+
2834
// Creates a "stdout" with the given formatter or text and name. It exits as
2935
// soon as the component has been mounted
3036
export const createStdout = (formatterOrText, name = 'VueCommandStdout') => markRaw(defineComponent({

0 commit comments

Comments
 (0)