Skip to content

Commit 6b2bafa

Browse files
authored
[PHP utils] Export splitShellCommand (#2706)
## Motivation for the change, related issues Pre-requisite for #2699. Empowers developers to create terminal-enabled apps by exporting the `splitShellCommand()` utility that was internal before. ```ts import { splitShellCommand } from "@php-wasm/util"; splitShellCommand('wp create post --title="Great post title!"'); ['wp', 'create', 'post', '--title=Great post title!'] ```
1 parent 7585252 commit 6b2bafa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/php-wasm/util/src/lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export {
1212
export { createSpawnHandler } from './create-spawn-handler';
1313
export { randomString } from './random-string';
1414
export { randomFilename } from './random-filename';
15+
export { splitShellCommand } from './split-shell-command';
1516
export { WritablePolyfill, type WritableOptions } from './writable-polyfill';
1617
export { EventEmitterPolyfill } from './event-emitter-polyfill';
1718
export * from './php-vars';

0 commit comments

Comments
 (0)