save

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSuccessMessage

func GetSuccessMessage(flags shared.SynonymFlags, indice string) (error, string)

func NewSaveCmd

func NewSaveCmd(f *cmdutil.Factory, runF func(*SaveOptions) error) *cobra.Command

NewSaveCmd creates and returns a save command for index synonyms

Types

type SaveOptions

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

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

	Indice            string
	ForwardToReplicas bool
	Synonym           search.Synonym
	SuccessMessage    string
}

type SuccessMessage

type SuccessMessage struct {
	Icon   string
	Type   string
	Id     string
	Values string
	Indice string
}

Jump to

Keyboard shortcuts

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