kingoftime-cli/src/commands/checkin.js

21 lines
464 B
JavaScript
Raw Permalink Normal View History

2023-04-16 15:12:51 +00:00
const {Command} = require('@oclif/core')
const {tokenFlags} = require('../tokenFlags')
const {checkin} = require('../kingoftime')
class CheckinCommand extends Command {
static description = 'Check in'
static examples = [
'<%= config.bin %> <%= command.id %>',
]
static flags = tokenFlags
async run() {
const {flags} = await this.parse(CheckinCommand)
await checkin(flags.token, flags['user-token'])
}
}
module.exports = CheckinCommand