Skip to content

fewlinesco/sparta-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4da31d8 Β· Dec 28, 2021

History

10 Commits
Sep 2, 2020
Sep 2, 2020
Sep 2, 2020
Dec 28, 2021
Aug 31, 2020
Sep 2, 2020
Sep 2, 2020
Aug 31, 2020
Dec 28, 2021
Dec 28, 2021
Mar 4, 2021
Dec 28, 2021

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