app

package
v0.0.0-...-dbfeed0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var App = &cli.App{
	Name: "GOPL - Go Prolog",
	Commands: []*cli.Command{
		{
			Name:      "compile",
			Aliases:   []string{"c"},
			Usage:     "compile the given input file",
			ArgsUsage: "<filename>",
			Flags: []cli.Flag{
				&cli.StringFlag{
					Name:    "outfile",
					Aliases: []string{"o"},
					Value:   "out.P",
				},
			},
			Action: handleLogger(compile),
		},
		{
			Name:    "shell",
			Aliases: []string{"s", ""},
			Usage:   "Enter the interactive query shell",
			Flags: []cli.Flag{
				&cli.BoolFlag{
					Name:    "verbose",
					Aliases: []string{"vv"},
					Value:   false,
				},
			},
			Action: handleLogger(interactive),
		},
	},
}

Functions

func NewHistory

func NewHistory(filename string, maxLines int) (*history, error)

Types

type QueryCLI

type QueryCLI struct {
	I indexer.Indexer
	R *resolver.R
	H *history
}

func (*QueryCLI) Run

func (q *QueryCLI) Run() error

Jump to

Keyboard shortcuts

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