refactor: 模板占位符从 {{app-name}} 改为 my-app

This commit is contained in:
2026-05-20 14:15:14 +08:00
parent e2bf594719
commit 4a38d4dac7
12 changed files with 19 additions and 19 deletions

View File

@@ -43,7 +43,7 @@ export function parseRuntimeArgs(argv: string[] = Bun.argv.slice(2)): { configPa
if (argv.length === 0) return {};
const firstArg = argv[0];
if (firstArg === "--help" || firstArg === "-h") {
console.log("用法: {{app-name}} [config.yaml]");
console.log("用法: my-app [config.yaml]");
console.log(" config.yaml 可选 YAML 配置文件路径(不存在时使用默认配置)");
process.exit(0);
}

View File

@@ -18,7 +18,7 @@ export function createHeaders(mode: RuntimeMode, init: HeadersInit): Headers {
export function createHealthResponse(): HealthResponse {
return {
ok: true,
service: "{{app-name}}",
service: "my-app",
timestamp: new Date().toISOString(),
};
}

View File

@@ -32,7 +32,7 @@ export function startServer(options: StartServerOptions) {
},
});
console.log(`{{app-name}} listening on ${server.url}`);
console.log(`my-app listening on ${server.url}`);
return server;
}