Skip to content

Cli in langium 2.0 #1200

Answered by cdietrich
cdietrich asked this question in Q&A
Sep 26, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

had a look at the domainmodel example.
there the logic in the main is completely different

import * as url from 'node:url';
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));

const packagePath = path.resolve(__dirname, '..', '..', 'package.json');
const packageContent = await fs.readFile(packagePath, 'utf-8');
....
program
        .version(JSON.parse(packageContent).version);

looks like these changes never made it into the generator

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cdietrich
Comment options

cdietrich Sep 26, 2023
Collaborator Author

@cdietrich
Comment options

cdietrich Sep 26, 2023
Collaborator Author

@msujew
Comment options

@cdietrich
Comment options

cdietrich Sep 26, 2023
Collaborator Author

Answer selected by cdietrich
@cdietrich
Comment options

cdietrich Sep 27, 2023
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants