importentries

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImportCmd

func NewImportCmd(f *cmdutil.Factory, runF func(*ImportOptions) error) *cobra.Command

NewImportCmd creates and returns an import command for dictionary

func ValidateDictionaryEntry

func ValidateDictionaryEntry(entry shared.DictionaryEntry, currentLine int) error

Types

type ImportOptions

type ImportOptions struct {
	Config config.IConfig
	IO     *iostreams.IOStreams

	SearchClient func() (*search.Client, error)

	DictionaryName    string
	CreateIfNotExists bool
	Wait              bool

	File    string
	Scanner *bufio.Scanner

	ContinueOnError bool
}

Jump to

Keyboard shortcuts

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