cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute added in v0.1.1

func Execute()

func ExitWithError

func ExitWithError(cmd string, err error)

func NewDiffCommand added in v0.1.1

func NewDiffCommand() *cobra.Command

NewDiffCommand generates a cobra command for executing the diff command. This command accepts the flags --file (-f path to csv file) and --out (-o path for output file). --out is optional, if not provided, out put file is created in same directory as input csv

func NewRootCmd added in v0.1.2

func NewRootCmd() *cobra.Command

Types

type Opts

type Opts struct {
	// contains filtered or unexported fields
}

func (*Opts) Run

func (opts *Opts) Run() error

Run reads the csv file and parses each line for image pairs for comparison. After comparison it writes the to output csv, with each line containing - "image1,image2,score,time taken

Jump to

Keyboard shortcuts

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