-
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathcommand.ts
More file actions
22 lines (20 loc) · 601 Bytes
/
command.ts
File metadata and controls
22 lines (20 loc) · 601 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import type { JHipsterCommandDefinition } from 'generator-jhipster';
import type Generator from './generator.js';
export default {
configs: {
auditPage: {
description: 'Generate client page',
cli: {
type: Boolean,
},
prompt: {
type: 'confirm',
message: 'Do you want to add an audit log page for entities?',
},
configure: gen => {
gen.blueprintConfig!.auditPage = (gen.blueprintConfig!.auditFramework ?? 'no') !== 'no';
},
scope: 'blueprint',
},
},
} as const satisfies JHipsterCommandDefinition<Generator>;