runner

package
v0.0.0-...-02e7294 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDir

func IsDir(path string) (bool, error)

func Run

func Run()

Types

type CLI

type CLI struct {
	Output string `type="path" short:"o" help:"Output directory or file" default:"."`

	WARC       bool `group:"warc" xor:"singlefile,warc" help:"Store pages in WARC files"`
	SingleFile bool `group:"singlefile" xor:"singlefile,warc" help:"Store pages as single-file HTML"`

	Screenshot bool `help:"Enable screenshots alongside other stored files"`

	URL []string `arg:"" required:"" help:"URLs to capture"`
}

type MultiOutput

type MultiOutput struct {
	Create func(seq int64) (outputs.Output, error)
	// contains filtered or unexported fields
}

func (*MultiOutput) Close

func (o *MultiOutput) Close() error

func (*MultiOutput) Get

func (o *MultiOutput) Get(url string) (outputs.Output, error)

type NonCloseableOutput

type NonCloseableOutput struct {
	outputs.Output
}

func (*NonCloseableOutput) Close

func (o *NonCloseableOutput) Close() error

type Outputs

type Outputs interface {
	io.Closer

	Get(url string) (outputs.Output, error)
}

type SingleOutput

type SingleOutput struct {
	Output outputs.Output
}

func (*SingleOutput) Close

func (o *SingleOutput) Close() error

func (*SingleOutput) Get

func (o *SingleOutput) Get(url string) (outputs.Output, error)

Jump to

Keyboard shortcuts

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