Skip to content

Commit

Permalink
docs: update resolveCommand return property (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxwazz authored Nov 24, 2024
1 parent e20cb15 commit 2502c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const pm = await detect()
if (!pm)
throw new Error('Could not detect package manager')

const { command, args } = resolveCommand(pm.agent, 'add', ['@antfu/ni']) // { cli: 'pnpm', args: ['add', '@antfu/ni'] }
const { command, args } = resolveCommand(pm.agent, 'add', ['@antfu/ni']) // { command: 'pnpm', args: ['add', '@antfu/ni'] }
console.log(`Detected the ${pm.agent} package manager. You can run a install with ${command} ${args.join(' ')}`)
```

Expand Down

0 comments on commit 2502c2e

Please sign in to comment.