pandodao / botastic-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

botastic-cli

A command line interface for Botastic.

Installation

go install github.com/pandodao/botastic-cli@latest

Set Environment Variables

export BOTASTIC_APP_ID=YOUR_APP_ID
export BOTASTIC_SECRET=YOUR_APP_SECRET

Usage

Build indexes from Markdown files

botastic-cli scan --dir ./docs --type md --mode paragraph

in which,

  • --dir is the directory of your markdown files
  • --type is the type of your markdown files, currently only md is supported
  • --mode is the mode of building indexes, currently supports paragraph and line

Create indexes

botastic-cli index --act create --file ./indexes.json

Query

botastic-cli index --act query --query "hello world"

About


Languages

Language:Go 100.0%