2024-03-29 16:25:29 +01:00
|
|
|
import config from './deno.json' with { type: 'json' }
|
|
|
|
import { Command } from '@cliffy/command/command.ts'
|
2024-03-29 16:30:33 +01:00
|
|
|
import { cmd as send } from './cli/send.ts'
|
2024-03-29 16:25:29 +01:00
|
|
|
|
|
|
|
const cli = new Command()
|
|
|
|
.name('cohamail')
|
|
|
|
.description('Mail cli for coh@bit.')
|
|
|
|
.version(config.version)
|
|
|
|
.command('send', send)
|
|
|
|
|
|
|
|
if (import.meta.main) {
|
|
|
|
if (Deno.args.length) {
|
|
|
|
cli.parse(Deno.args)
|
|
|
|
} else {
|
|
|
|
cli.showHelp()
|
|
|
|
}
|
|
|
|
}
|