MCPcopy Create free account
hub / github.com/expo/eas-cli / getShellCommandAndArgs

Function getShellCommandAndArgs

packages/steps/src/utils/shell/command.ts:1–15  ·  view source on GitHub ↗
(
  shell: string,
  script?: string
)

Source from the content-addressed store, hash-verified

1export function getShellCommandAndArgs(
2 shell: string,
3 script?: string
4): { command: string; args?: string[] } {
5 const splits = shell.split(' ');
6 const command = splits[0];
7 const args = [...splits.slice(1)];
8 if (script) {
9 args.push(script);
10 }
11 return {
12 command,
13 args,
14 };
15}

Callers 2

executeCommandAsyncMethod · 0.90
command-test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…