Skip to content

Commit

Permalink
refactor(module): improve messages (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinGangan authored Mar 11, 2024
1 parent 5cdb2f5 commit 8970b11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/commands/module/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import { colors } from 'consola/utils'

export default defineCommand({
meta: {
name: 'module',
description: 'Manage Nuxt Modules',
name: 'add',
description: 'Add Nuxt modules',
},
args: {
...sharedArgs,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/module/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineCommand } from 'citty'
export default defineCommand({
meta: {
name: 'module',
description: 'Manage Nuxt Modules',
description: 'Manage Nuxt modules',
},
args: {},
subCommands: {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/module/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { bold, green, magenta, cyan, gray } from 'colorette'

export default defineCommand({
meta: {
name: 'add',
name: 'search',
description: 'Search in Nuxt modules',
},
args: {
Expand Down Expand Up @@ -59,7 +59,7 @@ async function findModuleByKeywords(query: string, nuxtVersion: string) {
repository: gray(result.item.github),
description: gray(result.item.description),
package: gray(result.item.npm),
install: cyan(`nuxt module add ${result.item.npm}`),
install: cyan(`npx nuxi module add ${result.item.npm}`),
}
if (result.item.github === result.item.website) {
delete res.homepage
Expand Down

0 comments on commit 8970b11

Please sign in to comment.