Skip to content

Commit

Permalink
fix documentation command
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoosten committed Feb 9, 2025
1 parent 505d233 commit 027ed0e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,10 @@
"command": "extension.startDaemon",
"title": "Ampersand: Start checker"
},
{
"command": "extension.generateFunctionalSpec",
"title": "Ampersand: generate functional spec"
},
{
"command": "extension.generateAtlas",
"title": "Ampersand: Generate atlas"
},
// {
// "command": "extension.generateFunctionalSpec",
// "title": "Ampersand: Generate functional spec"
// },
{
"command": "extension.generatePrototype",
"title": "Ampersand: Generate prototype"
Expand Down Expand Up @@ -191,7 +187,7 @@
"default": false,
"description": "Generate binary tables instead of broad tables in SQL database, for testing purposes."
},
"ampersand.outputFolder": {
"ampersand.outputDir": {
"type": "string",
"default": "./output",
"description": "The path of the folder where the output of the ampersand compiler will be stored."
Expand Down Expand Up @@ -263,4 +259,4 @@
"ts-node": "^10.9.2",
"typescript": "^5.7.3"
}
}
}
2 changes: 1 addition & 1 deletion src/commands/generateAtlasCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export class generateAtlasCommand implements ICommand {
.getTerminal();

terminalUtils.runCommandsInExistingTerminal(terminal,
[`ampersand population --output-dir=${extensionSettings.outputFolder} --build-recipe Grind --output-format json --verbosity ${extensionSettings.verbosity} ${currentActiveFilePath}`]);
[`ampersand population --output-dir=${extensionSettings.outputDir} --build-recipe Grind --output-format json --verbosity ${extensionSettings.verbosity} ${currentActiveFilePath}`]);
}
}
4 changes: 2 additions & 2 deletions src/commands/generateFunctionalSpecCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export class generateFunctionalSpecCommand implements ICommand {
"ampersand documentation",
mainScriptPath,
"--format " + extensionSettings.documentation.format,
extensionSettings.graphicsSetting ? "--graphics" : "--no-graphics",
extensionSettings.graphicsSetting ? "" : "--no-graphics",
extensionSettings.documentation.intro ? "" : "--no-intro",
extensionSettings.documentation.sharedLang ? "" : "--no-SharedLang",
extensionSettings.documentation.diagnosis ? "" : "--no-Diagnosis",
extensionSettings.documentation.conceptualAnalysis ? "" : "--no-ConceptualAnalysis",
extensionSettings.documentation.dataAnalysis ? "" : "--no-DataAnalysis",
"--language=" + extensionSettings.outputLanguage,
"--output-folder " + extensionSettings.outputFolder,
"--output-dir " + extensionSettings.outputDir,
extensionSettings.sqlBinaryTables ? "--sql-binary-tables" : "",
"--verbosity " + extensionSettings.verbosity
]
Expand Down
4 changes: 2 additions & 2 deletions src/utils/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface ExtensionSettings {
folderSetting: string;
graphicsSetting: boolean;
mainScriptSetting: string;
outputFolder: string;
outputDir: string;
sqlBinaryTables: boolean;
verbosity: string;
outputLanguage: string;
Expand All @@ -37,7 +37,7 @@ export function loadSettings() {
folderSetting: config.get('folderName', "./project"),
graphicsSetting: config.get('graphics', true),
mainScriptSetting: config.get('mainScriptName', "main.adl"),
outputFolder: config.get('outputFolder', "./output"),
outputDir: config.get('outputDir', "./output"),
outputLanguage: config.get('outputLanguage', "NL"),
sqlBinaryTables: config.get('sqlBinaryTables', false),
verbosity: config.get<string>('verbosity', "warn"),
Expand Down

0 comments on commit 027ed0e

Please sign in to comment.