Fixed how endpoints are displayed on the list command.

This commit is contained in:
David Diaz 2021-01-29 12:43:08 -06:00
parent 8b72a42af1
commit 920ada664b
1 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,6 @@
const clc = require('cli-color')
const { Line } = require('clui')
const { expandPath } = require('../../../src/shared')
const Base = require('../base')
class ListCommand extends Base {
@ -31,9 +32,7 @@ class ListCommand extends Base {
.padding(2)
.column(VERB, 20, [clc.yellow])
.column(ALIAS, 30, [clc.yellow])
.column(
ENDPOINT.replace(/\/$/, '') + '/' + PATH.replace(/^\//, '')
)
.column(expandPath(ENDPOINT, PATH))
.output()
)