INNER CODE UNIT · TypeScript
PREFIX_WIDTH
rit3zh/reacticx · cloudflare/codebase/index.ts:37
const PREFIX_WIDTH = Math.max(...config.sources.map((s) => s.prefix.length)) + 2;
const HELP = `
${c.bold("reacticx codebase sync")} — push the library source to ${c.cyan(config.bucket)}
${c.dim("Usage")}
bun cloudflare/codebase/index.ts [flags]
${c.dim("Folders")}
${config.sources
.map((s) => ` ${c.cyan(`${s.prefix}/`.padEnd(PREFIX_WIDTH))} ${c.dim(`← ${s.dir}`)}`)
.join("\n")}
${c.dim("Flags")}
--only <ids> comma separated: ${sourceIds.join(", ")}
-n, --dry print the plan, upload nothing
-f, --force re-upload everything, ignoring the manifest
--prune delete objects whose local file no longer exists