HieDb
Generates a references DB from .hie files
インストール
$ git clone https://github.com/wz1000/HieDb.git
$ cd HieDb
$ cabal install exe:hiedb
$ hiedb --help
hiedb - a tool to query groups of .hie files
Usage: hiedb [-D|--database DATABASE] [-v|--trace] [-q|--quiet]
[-f|--virtual-file] COMMAND
Query .hie files
Available options:
-D,--database DATABASE References
Database (default: "/home/guchi/.local/share/default.hiedb")
-h,--help Show this help text
Available commands:
init Initialize databse
index Index database
name-refs Lookup references of value MODULE.NAME
type-refs Lookup references of type MODULE.NAME
name-def Lookup definition of value MODULE.NAME
type-def Lookup definition of type MODULE.NAME
cat Dump contents of MODULE as stored in the hiefile
ls List all indexed files/modules
rm Remove targets from index
module-uids List all the UnitIds MODULE is indexed under in the
db
lookup-hie Lookup the location of the .hie file corresponding to
MODULE
point-refs Find references for symbol at point/span
point-types List types of ast at point/span
point-defs Find definition for symbol at point/span
point-info Print name, module name, unit id for symbol at
point/span
動かし方
hiedb index <hie file>
でインデックスを登録するディレクトリを指定すると全部読み込む
Last updated