-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using with Deno #1803
Comments
Also working with the unstable npm support. Support for TypeScript typing from Deno v1.27.0. // cli.ts
import { Command } from "npm:commander";
const program = new Command();
program.parse(); $ deno --unstable run --allow-read cli.ts --help
Usage: cli [options]
Options:
-h, --help display help for command Deno roadmap for npm specifiers: denoland/deno#15960 |
With Deno v1.28.0:
|
I did some more testing and didn't find any problems with Deno v1.28.0. Nice work by them! I was wondering about adding an example import to the README in the |
I was looking at what might be needed to get Commander working in Deno. I discovered Commander is usable through the CDN https://esm.sh without code changes, including the TypeScript typing. Very clever!
I found two limitations:
--unstable
, so help wraps at column 80 by default(The terminal width presumably requires
consoleSize
: https://deno.land/[email protected]?unstable=&s=Deno.consoleSize )Update: terminal width working in Deno v1.28.0.
The text was updated successfully, but these errors were encountered: