Documentation ¶
Index ¶
- Constants
- Variables
- func Color(colorString string) func(...interface{}) string
- func CreateCorrectionSheet(name string, corrections []ilias.Correction) *excelize.File
- func FilterCorrections(values []ilias.Correction, test func(correction ilias.Correction) bool) (ret []ilias.Correction)
- func GetCredentials() *ilias.Credentials
- func NewIliasClient() *ilias.Client
- func ReadCorrection(path string) (*ilias.Correction, error)
- func ReadCorrections(members []string) ([]ilias.Correction, error)
- func ReadUserCache() string
- func WriteCorrectionTemplate(path string, params TemplateParams) error
- func WriteUserCache(username string)
- type CorrectionStats
- type CorrectionTemplate
- type Exercise
- type Spinner
- type Table
- type TemplateParams
- type Workspace
Constants ¶
View Source
const ( CorrectionTemplateFilename = "CORRECTION.tmpl" SubmissionFilename = "Abgabe" CorrectionFilename = "Korrektur.yml" )
View Source
const ( IconSuccess = "✓" IconError = "✘" NoMessage = "" )
View Source
const ( WorkspaceFilename = ".workspace.yml" UsercacheFilename = ".user" )
Variables ¶
View Source
var ( Red = Color("\033[1;31m%s\033[0m") Green = Color("\033[1;32m%s\033[0m") )
Functions ¶
func CreateCorrectionSheet ¶
func CreateCorrectionSheet(name string, corrections []ilias.Correction) *excelize.File
func FilterCorrections ¶
func FilterCorrections(values []ilias.Correction, test func(correction ilias.Correction) bool) (ret []ilias.Correction)
func GetCredentials ¶
func GetCredentials() *ilias.Credentials
func NewIliasClient ¶
func ReadCorrection ¶
func ReadCorrection(path string) (*ilias.Correction, error)
func ReadCorrections ¶
func ReadCorrections(members []string) ([]ilias.Correction, error)
func ReadUserCache ¶
func ReadUserCache() string
func WriteCorrectionTemplate ¶
func WriteCorrectionTemplate(path string, params TemplateParams) error
func WriteUserCache ¶
func WriteUserCache(username string)
Types ¶
type CorrectionStats ¶
type CorrectionStats struct { Corrected []ilias.Correction Pending []ilias.Correction }
func GetCorrectionStats ¶
func GetCorrectionStats(corrections []ilias.Correction) CorrectionStats
type CorrectionTemplate ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func StartSpinner ¶
func (*Spinner) StopSuccess ¶
func (*Spinner) StopSuccessRemove ¶
func (spin *Spinner) StopSuccessRemove()
func (*Spinner) UpdateMessage ¶
type TemplateParams ¶
Click to show internal directories.
Click to hide internal directories.