/** * ───────────────────────────────────────────── * SPB Git — Personal Git Platform * ───────────────────────────────────────────── * Author : Simon-Pierre Boucher * Contact : contact@spboucher.ai * File : cli/commands/token.mjs * Purpose : `spbgit token new|list|revoke` — PAT management * License : MIT © Simon-Pierre Boucher * ───────────────────────────────────────────── */ import pc from 'picocolors'; import { requireCliConfig } from '../lib/config.mjs'; import { api } from '../lib/api.mjs'; import { printTable } from '../lib/ui.mjs'; export function registerToken(program) { const token = program.command('token').description('manage personal access tokens'); token .command('new') .description('mint a new PAT (shown exactly once)') .option('--label