mirror of https://github.com/Seich/Beau.git
Fixed how endpoints are displayed on the list command. (#190)
This commit is contained in:
parent
8b72a42af1
commit
b54d2158df
|
|
@ -1,5 +1,6 @@
|
||||||
const clc = require('cli-color')
|
const clc = require('cli-color')
|
||||||
const { Line } = require('clui')
|
const { Line } = require('clui')
|
||||||
|
const { expandPath } = require('../../../src/shared')
|
||||||
const Base = require('../base')
|
const Base = require('../base')
|
||||||
|
|
||||||
class ListCommand extends Base {
|
class ListCommand extends Base {
|
||||||
|
|
@ -31,9 +32,7 @@ class ListCommand extends Base {
|
||||||
.padding(2)
|
.padding(2)
|
||||||
.column(VERB, 20, [clc.yellow])
|
.column(VERB, 20, [clc.yellow])
|
||||||
.column(ALIAS, 30, [clc.yellow])
|
.column(ALIAS, 30, [clc.yellow])
|
||||||
.column(
|
.column(expandPath(ENDPOINT, PATH))
|
||||||
ENDPOINT.replace(/\/$/, '') + '/' + PATH.replace(/^\//, '')
|
|
||||||
)
|
|
||||||
.output()
|
.output()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue