#!/usr/bin/env node
import { Command } from 'commander';
import { createRequire } from 'module';
import { authCommand, logoutCommand, whoamiCommand, checkCommand, chatsCommand, readCommand, searchCommand, sendCommand, replyCommand, inboxCommand, contactCommand, membersCommand, adminsCommand, groupsCommand, syncCommand, kickCommand, muteCommand, unmuteCommand, foldersCommand, folderCommand, folderAddCommand, folderRemoveCommand, writeAccessCommand, } from './commands/index.js';
const require = createRequire(import.meta.url);
const pkg = require('../package.json');
const program = new Command();
program
    .name('tg')
    .description('Fast Telegram CLI for reading, searching, and sending messages')
    .version(pkg.version);
// Auth commands
program.addCommand(authCommand);
program.addCommand(logoutCommand);
program.addCommand(checkCommand);
program.addCommand(whoamiCommand);
// Read commands
program.addCommand(chatsCommand);
program.addCommand(readCommand);
program.addCommand(searchCommand);
program.addCommand(inboxCommand);
// Contact/group commands
program.addCommand(contactCommand);
program.addCommand(membersCommand);
program.addCommand(adminsCommand);
program.addCommand(groupsCommand);
program.addCommand(kickCommand);
program.addCommand(muteCommand);
program.addCommand(unmuteCommand);
// Folder commands
program.addCommand(foldersCommand);
program.addCommand(folderCommand);
program.addCommand(folderAddCommand);
program.addCommand(folderRemoveCommand);
// Write commands
program.addCommand(sendCommand);
program.addCommand(replyCommand);
// Configuration
program.addCommand(writeAccessCommand);
// Utilities
program.addCommand(syncCommand);
program.parse();
//# sourceMappingURL=index.js.map