Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

578 B
Raw Blame
import { defineCommand, runMain } from 'citty';
import { description, version } from '../package.json';
import { configCommand } from './commands/config/config.command';
import { documentsCommand } from './commands/documents/documents.command';
import { importCommand } from './commands/import/documents.command';
import { cliName } from './config';

const main = defineCommand({
  meta: {
    name: cliName,
    version,
    description,
  },
  subCommands: {
    documents: documentsCommand,
    config: configCommand,
    import: importCommand,
  },
});

void runMain(main);