mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 15:01:41 +03:00
chore: update openclaw naming
This commit is contained in:
@@ -27,9 +27,9 @@ export type SkillsCheckOptions = {
|
||||
json?: boolean;
|
||||
};
|
||||
|
||||
function appendClawdHubHint(output: string, json?: boolean): string {
|
||||
function appendClawHubHint(output: string, json?: boolean): string {
|
||||
if (json) return output;
|
||||
return `${output}\n\nTip: use \`npx clawdhub\` to search, install, and sync skills.`;
|
||||
return `${output}\n\nTip: use \`npx clawhub\` to search, install, and sync skills.`;
|
||||
}
|
||||
|
||||
function formatSkillStatus(skill: SkillStatusEntry): string {
|
||||
@@ -94,7 +94,7 @@ export function formatSkillsList(report: SkillStatusReport, opts: SkillsListOpti
|
||||
const message = opts.eligible
|
||||
? `No eligible skills found. Run \`${formatCliCommand("openclaw skills list")}\` to see all skills.`
|
||||
: "No skills found.";
|
||||
return appendClawdHubHint(message, opts.json);
|
||||
return appendClawHubHint(message, opts.json);
|
||||
}
|
||||
|
||||
const eligible = skills.filter((s) => s.eligible);
|
||||
@@ -132,7 +132,7 @@ export function formatSkillsList(report: SkillStatusReport, opts: SkillsListOpti
|
||||
}).trimEnd(),
|
||||
);
|
||||
|
||||
return appendClawdHubHint(lines.join("\n"), opts.json);
|
||||
return appendClawHubHint(lines.join("\n"), opts.json);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -149,7 +149,7 @@ export function formatSkillInfo(
|
||||
if (opts.json) {
|
||||
return JSON.stringify({ error: "not found", skill: skillName }, null, 2);
|
||||
}
|
||||
return appendClawdHubHint(
|
||||
return appendClawHubHint(
|
||||
`Skill "${skillName}" not found. Run \`${formatCliCommand("openclaw skills list")}\` to see available skills.`,
|
||||
opts.json,
|
||||
);
|
||||
@@ -243,7 +243,7 @@ export function formatSkillInfo(
|
||||
}
|
||||
}
|
||||
|
||||
return appendClawdHubHint(lines.join("\n"), opts.json);
|
||||
return appendClawHubHint(lines.join("\n"), opts.json);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,7 +324,7 @@ export function formatSkillsCheck(report: SkillStatusReport, opts: SkillsCheckOp
|
||||
}
|
||||
}
|
||||
|
||||
return appendClawdHubHint(lines.join("\n"), opts.json);
|
||||
return appendClawHubHint(lines.join("\n"), opts.json);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user