Unofficial CLI for King of Time
Find a file
2023-04-15 01:50:13 +09:00
bin npx oclif generate kingoftime-cli 2023-04-14 22:20:36 +09:00
src run linter + wire up checkout 2023-04-15 01:50:13 +09:00
test Remove hello command 2023-04-14 22:36:27 +09:00
.editorconfig npx oclif generate kingoftime-cli 2023-04-14 22:20:36 +09:00
.eslintignore npx oclif generate kingoftime-cli 2023-04-14 22:20:36 +09:00
.eslintrc npx oclif generate kingoftime-cli 2023-04-14 22:20:36 +09:00
.gitignore npx oclif generate kingoftime-cli 2023-04-14 22:20:36 +09:00
.mocharc.json npx oclif generate kingoftime-cli 2023-04-14 22:20:36 +09:00
package.json Add axios and kingoftime module for HTTP requests 2023-04-15 01:39:52 +09:00
README.md Add tokenFlags to checkin/checkout commands 2023-04-15 00:18:30 +09:00
tsconfig.json npx oclif generate kingoftime-cli 2023-04-14 22:20:36 +09:00

King of Time CLI

Usage

TODO add instructions for setting tokens.

$ npm install -g kingoftime-cli
$ kot COMMAND
running command...
$ kot (--version)
kingoftime-cli/0.0.0 darwin-x64 node-v18.15.0
$ kot --help [COMMAND]
USAGE
  $ kot COMMAND
...

Commands

kot checkin

Check in

USAGE
  $ kot checkin --token <value> --user-token <value>

FLAGS
  --token=<value>       (required) Defaults to the KINGOFTIME_TOKEN environment variable.
  --user-token=<value>  (required) Defaults to the KINGOFTIME_USER_TOKEN environment variable.

DESCRIPTION
  Check in

EXAMPLES
  $ kot checkin

kot checkout

Check out

USAGE
  $ kot checkout --token <value> --user-token <value>

FLAGS
  --token=<value>       (required) Defaults to the KINGOFTIME_TOKEN environment variable.
  --user-token=<value>  (required) Defaults to the KINGOFTIME_USER_TOKEN environment variable.

DESCRIPTION
  Check out

EXAMPLES
  $ kot checkout

kot help [COMMANDS]

Display help for kot.

USAGE
  $ kot help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for kot.

See code: @oclif/plugin-help

Credits

Inspired by https://github.com/inabajunmr/kotrcli