cli

package
v0.0.0-...-f07e4a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCli

func RunCli(c *context.Ctx)

main method

Types

type EmitCmd

type EmitCmd struct {
	Input  string      `required:"" name:"in" help:"Input UTML file(s)"`
	Output string      `required:"" name:"out" help:"Output directory"`
	Type   g.GraphType `name:"type" help:"" default:"dot"`
}

cmd EMIT

func (*EmitCmd) Run

func (cmd *EmitCmd) Run(c *context.Ctx) error

type GradeCmd

type GradeCmd struct {
	GradingScheme       string `name:"scheme" required:"" help:"Grading Scheme to use (JSON file)"`
	ReferenceSubmission string `arg:"" required:"" name:"reference" help:"Reference submission (.utml file)"`
	SubmissionDir       string `arg:"" required:"" name:"submission_directory" help:"Submission directory (containing .utml files)"`
}

cmd GRADE

func (*GradeCmd) Run

func (cmd *GradeCmd) Run(c *context.Ctx) error

type TestCmd

type TestCmd struct {
	FName string `arg:"" name:"fname" help:"Your first name :)"`
	LName string `arg:"" name:"lname" help:"Your last name :)"`
}

cmd EXAMPLE - command that uses the test query

func (*TestCmd) Run

func (t *TestCmd) Run(c *context.Ctx) error

method that binds to the test command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL