Skip to content

fewlinesco/sparta-cli

Repository files navigation

Sparta CLI

Installation

$ asdf install
$ yarn install

Usage

$ npm install -g sparta
$ sparta COMMAND
running command...
$ sparta (-v|--version|version)
sparta/1.2.0 darwin-x64 node-v14.6.0
$ sparta --help [COMMAND]
USAGE
  $ sparta COMMAND
...

Commands

sparta help [COMMAND]

display help for sparta

USAGE
  $ sparta help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

sparta init

Initializes the Sparta workspace

USAGE
  $ sparta init

OPTIONS
  -b, --batchID=batchID
  -u, --userID=userID

EXAMPLE
  $ sparta init

See code: src/commands/init.ts

sparta sync

Updates all the exercises for the past days

USAGE
  $ sparta sync

See code: src/commands/sync.ts

sparta test

Launch the tests for an exercise

USAGE
  $ sparta test

See code: src/commands/test.ts

sparta today

Downloads the exercises for the current day

USAGE
  $ sparta today

See code: src/commands/today.ts