diff

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// config file
	DefaultConfigFile = "srctx_cfg.json"
)

Variables

This section is empty.

Functions

func AddConfigCmd added in v0.10.0

func AddConfigCmd(app *cli.App)

func AddDiffCmd

func AddDiffCmd(app *cli.App)

func MainDiff added in v0.10.0

func MainDiff(opts *Options) error

MainDiff allow accessing as a lib

Types

type ImpactUnitWithFile added in v0.10.0

type ImpactUnitWithFile struct {
	*object.ImpactUnit

	// line level impact
	ImpactLineCount int `csv:"impactLineCount" json:"impactLineCount"`
	TotalLineCount  int `csv:"totalLineCount" json:"totalLineCount"`
}

func WrapImpactUnitWithFile added in v0.10.0

func WrapImpactUnitWithFile(impactUnit *object.ImpactUnit) *ImpactUnitWithFile

type Options added in v0.10.0

type Options struct {
	// required
	Src      string `json:"src"`
	RepoRoot string `json:"repoRoot"`
	Before   string `json:"before"`
	After    string `json:"after"`
	LsifZip  string `json:"lsifZip"`
	ScipFile string `json:"scipFile"`

	// output
	OutputJson string `json:"outputJson"`
	OutputCsv  string `json:"outputCsv"`
	OutputDot  string `json:"outputDot"`
	OutputHtml string `json:"outputHtml"`
	StatJson   string `json:"statJson"`

	// options
	NodeLevel string `json:"nodeLevel"`
	WithIndex bool   `json:"withIndex"`
	CacheType string `json:"cacheType"`
	Lang      string `json:"lang"`
	NoDiff    bool   `json:"noDiff"`
	NoEntries bool   `json:"noEntries"`
	IndexCmd  string `json:"indexCmd"`
}

func NewOptionsFromCliFlags added in v0.10.0

func NewOptionsFromCliFlags(c *cli.Context) *Options

func NewOptionsFromJSONFile added in v0.10.0

func NewOptionsFromJSONFile(fp string) (*Options, error)

func NewOptionsFromSrc added in v0.10.0

func NewOptionsFromSrc(src string) (*Options, error)

Jump to

Keyboard shortcuts

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