18 lines
390 B
TypeScript
18 lines
390 B
TypeScript
|
import config from './deno.json' with { type: 'json' }
|
||
|
import { Command } from '@cliffy/command/command.ts'
|
||
|
import { cmd: send } from './cli/send.ts'
|
||
|
|
||
|
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()
|
||
|
}
|
||
|
}
|