import { program as app, Command } from '@/program.ts'; import { getConfig, writeConfig } from '@/module/index.ts'; import {queryMe} from '../query/index.ts'; // const command = new Command('me') // .description('') // .action(async () => { // const config = getConfig() // const res = await queryMe(); // if(res.code===200) { // console.log('me', res.data) // } else { // console.log('not login') // writeConfig({ ...config, token: '' }); // } // }); // app.addCommand(command);