Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add CLI to Yeoman template #157

Closed
spoenemann opened this issue Jul 2, 2021 · 0 comments · Fixed by #175
Closed

Add CLI to Yeoman template #157

spoenemann opened this issue Jul 2, 2021 · 0 comments · Fixed by #175
Assignees
Labels
yeoman Yeoman generator related issue
Milestone

Comments

@spoenemann
Copy link
Contributor

See discussion in #144. We should include a CLI in the generator-langium template so users have a clear path to implement a code generator.

I propose to add two files:

  • src/cli/<language-id>-cli.ts is the entry point of the CLI and uses commander to provide commands and options.
  • src/cli/generate.ts contains the implementation of a generate command. The initial "hello world" example could generate JavaScript code that prints Hello {name}! for every greeting in a source file.

See also #131.

@spoenemann spoenemann added the yeoman Yeoman generator related issue label Jul 2, 2021
@pluralia pluralia self-assigned this Jul 2, 2021
@spoenemann spoenemann added this to the v0.2.0 milestone Sep 15, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
yeoman Yeoman generator related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants