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
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 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 usescommander
to provide commands and options.src/cli/generate.ts
contains the implementation of agenerate
command. The initial "hello world" example could generate JavaScript code that printsHello {name}!
for every greeting in a source file.See also #131.
The text was updated successfully, but these errors were encountered: