json

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutput

func GetOutput(
	changes []*file.Change,
) ([]byte, error)

Types

type Output

type Output struct {
	Conflicts  conflict.Collection `json:"conflicts,omitempty"`
	WorkingDir string              `json:"working_dir"`
	Date       string              `json:"date"`
	Changes    []*file.Change      `json:"changes"`
	DryRun     bool                `json:"dry_run"`
}

Output represents the structure of the output produced by the `--json` flag. It is also used for backup files.

type OutputOpts

type OutputOpts struct {
	Date       time.Time
	WorkingDir string
	Exec       bool
	Print      bool // whether to print the JSON output
}

Jump to

Keyboard shortcuts

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