UNPKG
@vmg-anysphere/napi-rs-cli
Version:
latest (3.2.0-modules.3)
3.2.0-modules.3
3.2.0-modules.2
3.2.0-modules.1
3.2.0-modules.0
Cli tools for napi-rs
github.com/napi-rs/napi-rs
napi-rs/napi-rs
@vmg-anysphere/napi-rs-cli
/
src
/
commands
/
help.ts
14 lines
(12 loc)
•
291 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
Command
}
from
'clipanion'
/** * A command that prints the usage of all commands. * * Paths: `-h`, `--help` */
export
class
HelpCommand
extends
Command
<
any
> {
static
paths = [[
`-h`
], [
`--help`
]]
async
execute
(
) {
await
this
.
context
.
stdout
.
write
(
this
.
cli
.
usage
()) } }