Files
wehub-resource-sync d5f55b5f9c
Coverage / build (push) Waiting to run
Docker / Build (push) Waiting to run
Docker / Publish (push) Blocked by required conditions
Node.js CI / build (16, macos-latest) (push) Waiting to run
Node.js CI / build (16, ubuntu-latest) (push) Waiting to run
Node.js CI / build (16, windows-latest) (push) Waiting to run
NPM / Build (22) (push) Waiting to run
NPM / Pack (push) Blocked by required conditions
NPM / Publish (push) Blocked by required conditions
chore: import upstream snapshot with attribution
2026-07-13 12:40:42 +08:00

37 lines
749 B
JavaScript
Executable File

#!/usr/bin/env node
/**
* https://github.com/wechaty/wechaty
*
* Author: Huan <zixia@zixia.net>
* License: Apache-2.0
*
* CLI Apps in TypeScript with `cmd-ts` (Part 1)
* Using `cmd-ts` to easily build a type-safe TypeScript CLI app
*
* https://gal.hagever.com/posts/type-safe-cli-apps-in-typescript-with-cmd-ts-part-1/
*/
/* eslint-disable sort-keys */
import 'dotenv/config.js'
import {
binary,
run,
subcommands,
} from 'cmd-ts'
import { VERSION } from '../src/config.js'
import * as cmds from '../src/cli/mod.js'
const wechatyCli = subcommands({
name: 'wechaty',
description: 'Wechaty CLI Utility',
version: VERSION,
cmds,
})
run(
binary(wechatyCli),
process.argv,
).catch(console.error)