mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
13 lines
376 B
TypeScript
13 lines
376 B
TypeScript
#!/usr/bin/env tsx
|
|
|
|
import { PERMISSION_LEVELS } from '../frontends/nextjs/src/app/levels/levels-data'
|
|
|
|
const separators = PERMISSION_LEVELS.map((level) => [
|
|
level.id,
|
|
level.key,
|
|
JSON.stringify(level.title),
|
|
JSON.stringify(level.capabilities.join('; ')),
|
|
])
|
|
|
|
console.log(['id,key,title,capabilities', ...separators.map((row) => row.join(','))].join('\n'))
|