Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(module): improve messages #355

Merged
merged 6 commits into from Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/module/add.ts
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
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
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