mirror of
https://github.com/kou029w/_.git
synced 2025-04-17 01:59:36 +00:00
update tasks.md
This commit is contained in:
parent
a2d2d92e8e
commit
346d72f132
1 changed files with 5 additions and 7 deletions
12
zx/tasks.md
12
zx/tasks.md
|
@ -3,8 +3,7 @@
|
|||
```
|
||||
$ deno -A npm:zx tasks.md [task]
|
||||
: or
|
||||
$ npm i -g zx
|
||||
$ zx tasks.md [task]
|
||||
$ npx zx tasks.md [task]
|
||||
```
|
||||
|
||||
```js
|
||||
|
@ -14,7 +13,8 @@ const task = {
|
|||
cowsay,
|
||||
}[argv._[0]];
|
||||
|
||||
await (task ?? help)();
|
||||
$.verbose = true;
|
||||
await task?.().then(process.exit);
|
||||
```
|
||||
|
||||
## `build`
|
||||
|
@ -51,8 +51,6 @@ async function cowsay() {
|
|||
|
||||
このテキストの表示
|
||||
|
||||
```js
|
||||
async function help() {
|
||||
await $`cat ${__filename} >&2`;
|
||||
}
|
||||
```sh
|
||||
cat "${__filename}"
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue