save

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSuccessMessage

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

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.APIClient, error)

	Index             string
	ForwardToReplicas bool
	Synonym           search.SynonymHit
	SuccessMessage    string
	Wait              bool
}

type SuccessMessage

type SuccessMessage struct {
	Icon   string
	Type   string
	ID     string
	Values string
	Index  string
}

Jump to

Keyboard shortcuts

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