kingoftime-cli/src/commands/checkin.ts

19 lines
441 B
TypeScript
Raw Normal View History

import {Command} from '@oclif/core'
import {tokenFlags} from '../tokenFlags'
import {checkin} from '../kingoftime'
export default class Checkout extends Command {
static description = 'Check in'
static examples = [
'<%= config.bin %> <%= command.id %>',
]
static flags = tokenFlags
public async run(): Promise<void> {
const {flags} = await this.parse(Checkout)
await checkin(flags.token, flags['user-token'])
}
}