directory_indexer

command
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: Apache-2.0 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/CAMPFIRE' 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/CAMPFIRE",
    "language": ""
  }
}
{
  "fact_name": "/kythe/text",
  "fact_value": "...",
  "source": {
    "signature": "c2b0d93b83c1b0e22fd564278be1b0373b1dcb67ff3bb77c2f29df7c393fe580",
    "corpus": "kythe",
    "root": "",
    "path": "kythe/javatests/com/google/devtools/kythe/util/CAMPFIRE",
    "language": ""
  }
}

Usage:

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

Jump to

Keyboard shortcuts

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