Skip to content

Commit f6191e0

Browse files
committed
cli: only print install path if it's not the default location
1 parent 2cd1000 commit f6191e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cli/src/index.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,12 @@ yargs(hideBin(process.argv))
205205
return "unknown";
206206
}
207207
const { version, commit, path } = ver;
208-
return `ntt v${version} (${commit} ${path})`;
208+
const defaultPath = `${process.env.HOME}/.ntt-cli`;
209+
if (path === defaultPath) {
210+
return `ntt v${version} (${commit})`;
211+
} else {
212+
return `ntt v${version} (${commit}) from ${path}`;
213+
}
209214
})())
210215
// config group of commands
211216
.command("config",

0 commit comments

Comments
 (0)