Skip to content

Commit

Permalink
Merge pull request #26479 from mshima/help
Browse files Browse the repository at this point in the history
don't show removed commands in help
  • Loading branch information
DanielFran committed Jun 19, 2024
2 parents feecd98 + 703dac2 commit bdfec4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 2 additions & 0 deletions cli/commands.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ If you are interested in maintaining this sub-generator fill a feature request o
const defaultCommands = {
add: {
desc: 'Add a feature to current project',
removed: removedV8,
},
app: {
desc: '[Default] Create a new JHipster application based on the selected options',
Expand Down Expand Up @@ -136,6 +137,7 @@ const defaultCommands = {
},
page: {
desc: 'Create a new page. (Supports vue clients)',
removed: removedV8,
},
'project-name': {
desc: 'Configure project name (alpha)',
Expand Down
2 changes: 1 addition & 1 deletion cli/program.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const buildCommands = async ({
Object.entries(commands).forEach(([cmdName, opts]) => {
const { desc, blueprint, argument, options: commandOptions, alias, help: commandHelp, cliOnly, removed, useOptions = {} } = opts;
program
.command(cmdName, '', { isDefault: cmdName === defaultCommand })
.command(cmdName, '', { isDefault: cmdName === defaultCommand, hidden: Boolean(removed) })
.description(desc + (blueprint ? chalk.yellow(` (blueprint: ${blueprint})`) : ''))
.addCommandArguments(argument)
.addCommandOptions(commandOptions)
Expand Down
11 changes: 0 additions & 11 deletions generators/base/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,13 @@ Options:
-h, --help display help for command
Commands:
add Add a feature to current project
app [Default] Create a new JHipster application based on the selected options
aws Deploy the current application to Amazon Web Services
azure-app-service Deploy the current application to Azure App Service
azure-spring-cloud Deploy the current application to Azure Spring Cloud
ci-cd Create pipeline scripts for popular Continuous Integration/Continuous Deployment tools
cloudfoundry Generate a \`deploy/cloudfoundry\` folder with a specific manifest.yml to deploy to Cloud Foundry
docker-compose Create all required Docker deployment configuration for the selected applications
download <jdlFiles...> Download jdl file from template repository
entity Create a new JHipster entity: JPA entity, Spring server-side components and Angular client-side components
entities Regenerate entities
export-jdl Create a JDL file from the existing entities
gae Deploy the current application to Google App Engine
generate-blueprint Generate a blueprint
gradle Create Gradle project (alpha)
heroku Deploy the current application to Heroku
Expand All @@ -50,13 +44,8 @@ Commands:
kubernetes-knative|knative Deploy the current application to Kubernetes using knative constructs
languages Select languages from a list of available languages. The i18n files will be copied to the /webapp/i18n folder
maven Create Maven project (alpha)
openshift Deploy the current application to OpenShift
page Create a new page. (Supports vue clients)
project-name Configure project name (alpha)
run [generator] Run a module or custom generator
spring-service|service Create a new Spring service bean
spring-controller Create a new Spring controller
openapi-client Generates java client code from an OpenAPI/Swagger definition
upgrade Upgrade the JHipster version, and upgrade the generated application
workspaces Add workspaces configuration
help [command] display help for command
Expand Down

0 comments on commit bdfec4a

Please sign in to comment.