feat(cli): improve setup onboarding

This commit is contained in:
morluto
2026-07-18 11:59:16 +08:00
parent 7bccb7c6ae
commit 16002ff3c2
70 changed files with 2043 additions and 228 deletions
+2
View File
@@ -3,6 +3,7 @@ import { join } from "node:path";
/** One supported client configuration location. */
export interface SetupClient {
readonly name: string;
readonly displayName?: string;
readonly configPath: string;
readonly markerPath?: string;
readonly format?: "json" | "toml" | "unsupported";
@@ -70,6 +71,7 @@ export const SUPPORTED_CLIENT_DEFINITIONS = [
export const supportedClients = (home: string): readonly SetupClient[] =>
SUPPORTED_CLIENT_DEFINITIONS.map((definition) => ({
name: definition.name,
displayName: definition.displayName,
configPath: join(home, ...definition.configPath),
markerPath: join(home, ...definition.markerPath),
format: definition.format,