Skip to content

Commit

Permalink
rollback on commands constant usage for type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed Sep 14, 2024
1 parent 371ef8f commit 5b886ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions generators/spring-boot/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ const command = {
when: () => ['gateway', 'microservice'].includes(gen.jhipsterConfigWithDefaults.applicationType),
type: 'list',
message: 'Which service discovery server do you want to use?',
default: CONSUL,
default: 'consul',
}),
choices: [
{ value: CONSUL, name: 'Consul (recommended)' },
{ value: EUREKA, name: 'JHipster Registry (legacy, uses Eureka, provides Spring Cloud Config support)' },
{ value: NO_SERVICE_DISCOVERY, name: 'No service discovery' },
{ value: 'consul', name: 'Consul (recommended)' },
{ value: 'eureka', name: 'JHipster Registry (legacy, uses Eureka, provides Spring Cloud Config support)' },
{ value: 'no', name: 'No service discovery' },
],
scope: 'storage',
},
Expand All @@ -100,9 +100,9 @@ const command = {
default: () => gen.jhipsterConfigWithDefaults.authenticationType,
}),
choices: [
{ value: JWT, name: 'JWT authentication (stateless, with a token)' },
{ value: OAUTH2, name: 'OAuth 2.0 / OIDC Authentication (stateful, works with Keycloak and Okta)' },
{ value: SESSION, name: 'HTTP Session Authentication (stateful, default Spring Security mechanism)' },
{ value: 'jwt', name: 'JWT authentication (stateless, with a token)' },
{ value: 'oauth2', name: 'OAuth 2.0 / OIDC Authentication (stateful, works with Keycloak and Okta)' },
{ value: 'session', name: 'HTTP Session Authentication (stateful, default Spring Security mechanism)' },
],
configure: gen => {
const { jwtSecretKey, rememberMeKey, authenticationType, applicationType } = gen.jhipsterConfigWithDefaults;
Expand Down Expand Up @@ -179,7 +179,7 @@ const command = {
type: String,
hide: true,
},
choices: [SQL, MONGODB, COUCHBASE, CASSANDRA, NEO4J, NO_DATABASE],
choices: ['sql', 'mongodb', 'couchbase', 'cassandra', 'neo4j', 'no'],
scope: 'storage',
},
},
Expand Down

0 comments on commit 5b886ce

Please sign in to comment.