2024-05-01 14:53:22 +08:00
|
|
|
const { output } = require('proc-log')
|
|
|
|
const BaseCommand = require('../base-cmd.js')
|
2021-03-05 06:40:28 +08:00
|
|
|
|
2021-03-12 06:54:23 +08:00
|
|
|
class Prefix extends BaseCommand {
|
2021-11-19 04:58:02 +08:00
|
|
|
static description = 'Display prefix'
|
|
|
|
static name = 'prefix'
|
|
|
|
static params = ['global']
|
|
|
|
static usage = ['[-g]']
|
2021-03-05 06:40:28 +08:00
|
|
|
|
2024-05-01 14:53:22 +08:00
|
|
|
async exec () {
|
|
|
|
return output.standard(this.npm.prefix)
|
2021-03-05 06:40:28 +08:00
|
|
|
}
|
|
|
|
}
|
2024-05-01 14:53:22 +08:00
|
|
|
|
2021-03-05 06:40:28 +08:00
|
|
|
module.exports = Prefix
|