Documentation ¶
Index ¶
- Constants
- func Configure(ctx *cli.Context)
- func Debug(ctx *cli.Context)
- func Demo(ctx *cli.Context)
- func Fetch(ctx *cli.Context)
- func Login(ctx *cli.Context)
- func Logout(ctx *cli.Context)
- func Restore(ctx *cli.Context)
- func Submit(ctx *cli.Context)
- func Unsubmit(ctx *cli.Context)
- type HWFilter
- type Homework
- type Item
Constants ¶
const ( // HWAll represents all items in the collection. HWAll = iota // HWUpdated represents problems that were already on the // user's filesystem, where one or more new files have been added. HWUpdated // HWNew represents problems that did not yet exist on the // user's filesystem. HWNew )
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
Configure stores settings in a JSON file. If a setting is not passed as an argument, default values are used.
func Login ¶
Login interactively stores exercism API configuration. Delete when nobody is using 1.6.x anymore.
Types ¶
type Homework ¶ added in v1.7.1
type Homework struct { Items []*Item // contains filtered or unexported fields }
Homework is a collection of problems that were fetched from the APIs.
func NewHomework ¶ added in v1.7.1
NewHomework decorates a problem set with some additional data based on the user's system.
func (*Homework) ItemsMatching ¶ added in v1.7.1
ItemsMatching returns a subset of the set of problems.
func (*Homework) Report ¶ added in v1.7.1
Report outputs a list of the problems in the set. It prints the track name, the problem name, and the full path to the problem on the user's filesystem.
type Item ¶ added in v1.7.1
Item is a problem that has been fetched from the APIs. It contains some data specific to this particular request and user in order to give a useful report to the user about what has been fetched.
func (*Item) Matches ¶ added in v1.7.1
Matches determines whether or not this item matches the given filter.