Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "bleve", Short: "command-line tool to interact with a bleve index", Long: `Bleve is a command-line tool to interact with a bleve index.`, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if len(args) < 1 { return fmt.Errorf("must specify path to index") } var err error idx, err = bleve.Open(args[0]) if err != nil { return fmt.Errorf("error opening bleve index: %v", err) } return nil }, PersistentPostRunE: func(cmd *cobra.Command, args []string) error { err := idx.Close() if err != nil { return fmt.Errorf("error closing bleve index: %v", err) } return nil }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.