refactor: rename CLI binary from lab to labctl
Updated everywhere: constants, package.json bin, completions, nfpm packaging, build scripts, CI, banner text. Binary is now /usr/bin/labctl. Internal package names (@lab/*) unchanged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -330,29 +330,29 @@ async function main(): Promise<void> {
|
||||
const bashContent = generateBash(tree);
|
||||
|
||||
const completionsDir = join(ROOT, 'completions');
|
||||
const fishPath = join(completionsDir, 'lab.fish');
|
||||
const bashPath = join(completionsDir, 'lab.bash');
|
||||
const fishPath = join(completionsDir, 'labctl.fish');
|
||||
const bashPath = join(completionsDir, 'labctl.bash');
|
||||
|
||||
if (mode === '--check') {
|
||||
let stale = false;
|
||||
try {
|
||||
const currentFish = readFileSync(fishPath, 'utf-8');
|
||||
if (currentFish !== fishContent) {
|
||||
console.error('completions/lab.fish is stale');
|
||||
console.error('completions/labctl.fish is stale');
|
||||
stale = true;
|
||||
}
|
||||
} catch {
|
||||
console.error('completions/lab.fish does not exist');
|
||||
console.error('completions/labctl.fish does not exist');
|
||||
stale = true;
|
||||
}
|
||||
try {
|
||||
const currentBash = readFileSync(bashPath, 'utf-8');
|
||||
if (currentBash !== bashContent) {
|
||||
console.error('completions/lab.bash is stale');
|
||||
console.error('completions/labctl.bash is stale');
|
||||
stale = true;
|
||||
}
|
||||
} catch {
|
||||
console.error('completions/lab.bash does not exist');
|
||||
console.error('completions/labctl.bash does not exist');
|
||||
stale = true;
|
||||
}
|
||||
if (stale) {
|
||||
@@ -373,9 +373,9 @@ async function main(): Promise<void> {
|
||||
}
|
||||
|
||||
// Default: print to stdout
|
||||
console.log('=== completions/lab.fish ===');
|
||||
console.log('=== completions/labctl.fish ===');
|
||||
console.log(fishContent);
|
||||
console.log('=== completions/lab.bash ===');
|
||||
console.log('=== completions/labctl.bash ===');
|
||||
console.log(bashContent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user