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
Copy file name to clipboardExpand all lines: Readme.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -415,7 +415,7 @@ A command's options on the command line are validated when the command is used.
415
415
416
416
### Stand-alone executable (sub)commands
417
417
418
-
When `.command()` is invoked with a description argument, this tells Commander that you're going to use stand-alone executables forsub-commands.
418
+
When `.command()` is invoked with a description argument, this tells Commander that you're going to use stand-alone executables forsubcommands.
419
419
Commander will search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-subcommand`, like `pm-install`, `pm-search`.
420
420
You can specify a custom name with the `executableFile` configuration option.
The Commander package includes its TypeScript Definition file.
628
628
629
-
If you use `ts-node` and stand-alone executable sub-commands written as `.ts` files, you need to call your program through node to get the sub-commands called correctly. e.g.
629
+
If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly. e.g.
- Use `#! /usr/bin/env node --harmony` in the sub-commands scripts. (Note Windows does not support this pattern.)
640
-
- Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning sub-command process.
639
+
- Use `#! /usr/bin/env node --harmony` in the subcommands scripts. (Note Windows does not support this pattern.)
640
+
- Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning subcommand process.
0 commit comments