init for deploy files
This commit is contained in:
11
src/command/logout.ts
Normal file
11
src/command/logout.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { app, Command } from '@/app.ts';
|
||||
import { getConfig, writeConfig } from '@/module/index.ts';
|
||||
|
||||
const command = new Command('logout')
|
||||
.description('')
|
||||
.action(async () => {
|
||||
const config = getConfig();
|
||||
writeConfig({ ...config, token: '' });
|
||||
});
|
||||
|
||||
app.addCommand(command);
|
||||
Reference in New Issue
Block a user