Skip to content

Commit 9d5a079

Browse files
committed
fix(kenv): expose examples in list
1 parent 0a51617 commit 9d5a079

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/api/kit.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
resolveScriptToCommand,
1616
run,
1717
getKenvs,
18-
getLastSlashSeparated,
1918
} from "../core/utils.js"
2019
import {
2120
getScripts,
@@ -665,7 +664,7 @@ export let selectKenv = async (
665664
let kenvChoices = [
666665
homeKenv,
667666
...kenvs.map(p => {
668-
let name = getLastSlashSeparated(p, 1)
667+
let name = path.basename(p)
669668
return {
670669
name,
671670
description: p,

src/cli/kenv-pull.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Description: Git Pull Kenv Repo
22

3-
let { dirPath: kPath } = await selectKenv()
3+
let { dirPath: kPath } = await selectKenv(/^ignore$/)
44

55
try {
66
cd(kPath)

0 commit comments

Comments
 (0)