kingoftime-cli/src/commands/checkin.ts

17 lines
436 B
TypeScript
Raw Normal View History

import {Command} from '@oclif/core'
2023-04-14 16:50:13 +00:00
import {tokenFlags} from '../token-flags'
import {checkin} from '../kingoftime'
export default class Checkout extends Command {
2023-04-26 15:30:46 +00:00
static description = 'Check in';
2023-04-26 15:30:46 +00:00
static examples = ['<%= config.bin %> <%= command.id %>'];
2023-04-26 15:30:46 +00:00
static flags = tokenFlags;
public async run(): Promise<void> {
const {flags} = await this.parse(Checkout)
await checkin(flags.token, flags['user-token'])
}
}