watch

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Path is the path to the directory containing the module you want to watch
	Path string
	// Socket will enable a unix socket that emits watch result status
	Socket bool
	// PlotConfig customizes the plot execution
	PlotConfig wfapi.PlotExecConfig
}

Configuration for the watch command

func (*Config) Run

func (c *Config) Run(ctx context.Context) error

Run will execute the watch command

Errors:

  • warpforge-error-datatoonew -- when module or plot has an unrecognized version number
  • warpforge-error-git --
  • warpforge-error-io -- when socket path is too long
  • warpforge-error-io -- when the module or plot files cannot be read or cannot change directory.
  • warpforge-error-serialization -- when the module or plot cannot be parsed
  • warpforge-error-unknown -- when changing directories fails
  • warpforge-error-unknown -- when context ends for reasons other than being canceled

Jump to

Keyboard shortcuts

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