{"modulePath":"github.com/algolia/cli","version":"v1.18.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package update\n\n## Functions\n\n```go\nfunc IsAllowedOperation(op string) bool\n```\nIsAllowedOperation checks if the \\`\\_operation\\` value is allowed\n\n```go\nfunc IsValidUpdate(obj map[string]any) error\n```\nIsValidUpdate validates the update object before hitting the API\n\n```go\nfunc NewUpdateCmd(f *cmdutil.Factory, runF func(*UpdateOptions) error) *cobra.Command\n```\nNewUpdateCmd creates and returns an update command for index objects\n\n## Types\n\n```go\ntype UpdateOptions struct {\n\tConfig config.IConfig\n\tIO     *iostreams.IOStreams\n\n\tSearchClient func() (*search.APIClient, error)\n\n\tIndex             string\n\tCreateIfNotExists bool\n\tWait              bool\n\n\tFile    string\n\tScanner *bufio.Scanner\n\n\tContinueOnError bool\n\tDryRun          bool\n\tPrintFlags      *cmdutil.PrintFlags\n}\n```\n\n","path":"github.com/algolia/cli/pkg/cmd/objects/update","name":"update","synopsis":"","isRedistributable":true}
