directory_indexer

command
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0, NCSA Imports: 14 Imported by: 0

Documentation

Overview

Binary directory_indexer produces a set of Entry protos representing the files in the given directories.

For instance, a file 'kythe/javatests/com/google/devtools/kythe/util/BUILD' would produce two entries:

{
  "fact_name": "/kythe/node/kind",
  "fact_value": "file",
  "source": {
    "signature": "c2b0d93b83c1b0e22fd564278be1b0373b1dcb67ff3bb77c2f29df7c393fe580",
    "corpus": "kythe",
    "root": "",
    "path": "kythe/javatests/com/google/devtools/kythe/util/BUILD",
    "language": ""
  }
}
{
  "fact_name": "/kythe/text",
  "fact_value": "...",
  "source": {
    "signature": "c2b0d93b83c1b0e22fd564278be1b0373b1dcb67ff3bb77c2f29df7c393fe580",
    "corpus": "kythe",
    "root": "",
    "path": "kythe/javatests/com/google/devtools/kythe/util/BUILD",
    "language": ""
  }
}

Usage:

directory_indexer --corpus kythe --root kythe ~/repo/kythe/ \
  --exclude '^buildtools,^bazel-,^third_party,~$,#$,(^|/)\.'

Jump to

Keyboard shortcuts

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