Skip to content
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

Provide a CLI interface #87

Closed
mojavelinux opened this issue Dec 19, 2014 · 5 comments
Closed

Provide a CLI interface #87

mojavelinux opened this issue Dec 19, 2014 · 5 comments
Assignees

Comments

@mojavelinux
Copy link
Member

It would be amazing if Asciidoctor.js could provide the same CLI interface (or at the very least, a minimal CLI interface) just like Asciidoctor. That way, people could install Asciidoctor.js (perhaps using npm) and get the asciidoctor command (or perhaps the asciidoctorjs command, to be consistent with AsciidoctorJ and not cause conflicts).

@anthonny
Copy link
Member

👍

@mojavelinux
Copy link
Member Author

Perhaps using something like: https://www.npmjs.com/package/cli

We could attempt to cross compile the cli from Ruby, though because of the widely varied environment, it may not work well.

@ggrossetie ggrossetie self-assigned this Dec 21, 2014
@ggrossetie
Copy link
Member

@mojavelinux
Copy link
Member Author

Just tried it and it works great. Nice work!

@mojavelinux
Copy link
Member Author

Now that we've published the "asciidoctor-cli" package, it makes me wonder whether we should rename (or alias) the core package as "asciidoctor" instead of (or in addition to) "asciidoctor.js".

$ npm install asciidoctor
$ npm install asciidoctor-cli

Is it possible to add a package alias? If not, I'm okay with renaming the package. I think we agreed that it's understood that this is a JavaScript package given that we are using npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants