mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
style: apply strict style rules for this feature
This commit is contained in:
17
src/cli.ts
17
src/cli.ts
@@ -29,9 +29,9 @@ import {
|
||||
getNodeMetaInformationMap,
|
||||
} from './routes';
|
||||
import {Converter, getValidatableTypesFromReflection} from './schema';
|
||||
import {createDiagram, createDiagramFromString} from './uml/createDiagram';
|
||||
import {readDefinitions} from './uml/readDefinitions';
|
||||
import {UMLConfig} from './uml/umlConfig';
|
||||
import {createDiagram, createDiagramFromString} from './uml/create-diagram';
|
||||
import {readDefinitions} from './uml/read-definitions';
|
||||
import {UMLConfig} from './uml/uml-config';
|
||||
import {validateFiles, writeReport} from './validate';
|
||||
|
||||
// handle unhandled promise rejections
|
||||
@@ -169,9 +169,11 @@ commander
|
||||
}
|
||||
});
|
||||
|
||||
commander.command('pack').action(async () => {
|
||||
await pack();
|
||||
});
|
||||
commander
|
||||
.command('pack')
|
||||
.action(async () => {
|
||||
await pack();
|
||||
});
|
||||
|
||||
commander
|
||||
.command('plantuml <srcPath> <plantumlserver>')
|
||||
@@ -250,7 +252,8 @@ commander
|
||||
commander
|
||||
.command('plantuml-file <inputFile> <plantumlserver> [outputFile]')
|
||||
.action(async (file: string, plantumlserver: string, outputFile: string) => {
|
||||
const fileContent = readFileSync(resolve(file)).toString();
|
||||
const fileContent = readFileSync(resolve(file))
|
||||
.toString();
|
||||
await createDiagramFromString(fileContent, plantumlserver, outputFile);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user