feat: declare and execute SCUM guided installs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { jobCapabilityLabel } from "./jobPresentation";
|
||||
|
||||
describe("jobCapabilityLabel", () => {
|
||||
it("keeps Run routing identifiers out of operator task titles", () => {
|
||||
expect(jobCapabilityLabel("process.install")).toBe("安装服务端");
|
||||
expect(jobCapabilityLabel("dependencies.install")).toBe("安装运行依赖");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,11 @@
|
||||
export function jobCapabilityLabel(capability: string): string {
|
||||
switch (capability) {
|
||||
case "process.install": return "安装服务端";
|
||||
case "process.start": return "启动服务器";
|
||||
case "process.stop": return "停止服务器";
|
||||
case "process.status": return "检查服务器状态";
|
||||
case "dependencies.check": return "检查运行依赖";
|
||||
case "dependencies.install": return "安装运行依赖";
|
||||
default: return capability;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user