You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function similar to [Ramda `R.pipe`](https://ramdajs.com/docs/#pipe)). Provides functional way to combine commands/functions.
89
-
Can be used with [xarg()](#xarg). **Some functions from shelljs also allow you to combine them, see [Pipes](https://github.com/shelljs/shelljs#pipes)**.
90
89
91
90
```js
92
91
pipe(
93
92
Number,
94
-
v=>s.greenBright(v+1),
93
+
v=>chalk.greenBright(v+1),
95
94
v=>`Result is: ${v}`,
96
95
echo
97
96
)(awaitquestion("Choose number:"));
@@ -125,15 +124,6 @@ A wrapper around the [readline](https://nodejs.org/api/readline.html) package.
125
124
constbear=awaitquestion('What kind of bear is best? ')
126
125
```
127
126
128
-
### `exec$()`
129
-
A wrapper around the [exec](https://github.com/shelljs/shelljs#execcommand--options--callback) function.
130
-
Runs in silent mode and handle text to be used as variables.
131
-
132
-
```js
133
-
constbranch=exec$("git branch --show-current");
134
-
echo('Current branch is', branch);
135
-
```
136
-
137
127
### `echo()`
138
128
A `console.log()` alternative optimized for scripting.
0 commit comments