예제 #1
0
func init() {
	if runtime.GOMAXPROCS(0) == 1 {
		runtime.GOMAXPROCS(runtime.NumCPU())
	}
	flag.Usage = flagutil.SimpleUsage("Write a delimited stream of entries from stdin to a GraphStore",
		"[--batch_size entries] [--workers n] --graphstore spec")
	gsutil.Flag(&gs, "graphstore", "GraphStore to which to write the entry stream")
}
예제 #2
0
func init() {
	if runtime.GOMAXPROCS(0) == 1 {
		runtime.GOMAXPROCS(runtime.NumCPU())
	}
	gsutil.Flag(&gs, "graphstore", "GraphStore to serve xrefs")
	flag.Usage = flagutil.SimpleUsage("Exposes HTTP/GRPC interfaces for the search, xrefs, and filetree services",
		"(--graphstore spec | --serving_table path) [--listen addr] [--grpc_listen addr] [--public_resources dir]")
}
예제 #3
0
파일: write_tables.go 프로젝트: kidaa/kythe
func init() {
	if runtime.GOMAXPROCS(0) == 1 {
		runtime.GOMAXPROCS(runtime.NumCPU())
	}
	gsutil.Flag(&gs, "graphstore", "GraphStore to read")
	flag.Usage = flagutil.SimpleUsage("Creates a combined xrefs/filetree/search serving table based on a given GraphStore",
		"--graphstore spec --out path")
}
예제 #4
0
파일: kwazthis.go 프로젝트: gameduell/kythe
func init() {
	flag.Usage = flagutil.SimpleUsage(`Determine what references are located at a particular offset within a file.

By default, kwazthis will search for a .kythe configuration file in a directory
above the given --path (if it exists locally relative to the current working
directory).  If found, --path will be made relative to this directory and --root
before making any Kythe service requests.  If not found, --path will be passed
unchanged.  --ignore_local_repo will turn off this behavior.`,
		"--offset int (--path p | --signature s) [--corpus c] [--root r] [--language l] [--ignore_local_repo] [--dirty_buffer path]")
}
예제 #5
0
func init() {
	flag.Usage = flagutil.SimpleUsage(`Local CompilationAnalyzer server driver

Drives a CompilationAnalyzer server as a subprocess, sending it
AnalysisRequests, and writing the AnalysisOutput values as a delimited stream.

The command for the analyzer is given as non-flag arguments with the string
@port@ replaced with --analyzer_port.`,
		`[--analyzer_port int]
<analyzer-command> [analyzer-args...] -- <kindex-file...>`)
}
예제 #6
0
파일: kwazthis.go 프로젝트: kidaa/kythe
func init() {
	flag.Usage = flagutil.SimpleUsage(`Determine what references are located at a particular offset (or line and column) within a file.

kwazthis normally searches for a .kythe configuration file in a directory above
the given --path (if it exists locally relative to the current working
directory).  If found, --path will be made relative to this directory and --root
before making any Kythe service requests.  If not found, --path will be passed
unchanged.

If the given --path file is found locally and --dirty_buffer is unset,
--dirty_buffer is automatically set to found local file and sent to the server .

--local_repo supplies kwazthis with the corpus root without searching the
filesystem for the .kythe file and --local_repo=NONE will turn off all local
filesystem behavior completely (including the automatic --dirty_buffer
feature).`,
		`(--offset int | --line int --column int) (--path p | --signature s)
[--corpus c] [--root r] [--language l]
[--api spec] [--local_repo root] [--dirty_buffer path] [--skip_defs]`)
}
예제 #7
0
파일: triples.go 프로젝트: gameduell/kythe
func init() {
	gsutil.Flag(&gs, "graphstore", "Path to GraphStore to convert to triples (instead of an entry stream)")
	flag.Usage = flagutil.SimpleUsage("Converts an Entry stream to a stream of triples",
		"[(--graphstore path | entries_file) [triples_out]]")
}
예제 #8
0
func init() {
	flag.Usage = flagutil.SimpleUsage("Produce a stream of entries representing the files in the given directories",
		"[--verbose] [--emit_irregular] [--vnames path] [--exclude re0,re1,...,reN] [directories]")
}
예제 #9
0
func init() {
	flag.Usage = flagutil.SimpleUsage("Indexes Kythe LevelDB serving tables into a codesearch index",
		"--serving_table path --out out-file")
}
예제 #10
0
func init() {
	gsutil.Flag(&gs, "graphstore", "GraphStore to read (mutually exclusive with --entries)")
	flag.Usage = flagutil.SimpleUsage(
		"Creates a combined xrefs/filetree/search serving table based on a given GraphStore or stream of GraphStore-ordered entries",
		"(--graphstore spec | --entries path) --out path")
}
예제 #11
0
파일: viewindex.go 프로젝트: jwatt/kythe
func init() {
	flag.Usage = flagutil.SimpleUsage("Print a .kindex archive as JSON to stdout",
		"[--files] <kindex-file>")
}
예제 #12
0
파일: read_entries.go 프로젝트: jwatt/kythe
func init() {
	gsutil.Flag(&gs, "graphstore", "GraphStore to read")
	flag.Usage = flagutil.SimpleUsage("Scans/reads the entries from a GraphStore, emitting a delimited entry stream to stdout",
		"--graphstore spec [--count] [--shards N [--shard_index I] --sharded_file path] [--edge_kind] ([--fact_prefix str] [--target ticket] | [ticket...])")
}
예제 #13
0
파일: dedup_stream.go 프로젝트: jwatt/kythe
func init() {
	flag.Usage = flagutil.SimpleUsage("Remove duplicate records from a delimited stream")
}
예제 #14
0
func init() {
	gsutil.Flag(&gs, "graphstore", "GraphStore to serve xrefs")
	flag.Usage = flagutil.SimpleUsage("Exposes HTTP/GRPC interfaces for the xrefs and filetree services",
		"(--graphstore spec | --serving_table path) [--listen addr] [--grpc_listen addr] [--public_resources dir]")
}
예제 #15
0
func init() {
	flag.Usage = flagutil.SimpleUsage("Manipulate a stream of delimited Entry messages",
		"[--read_json] [--unique] ([--write_json] [--sort] | [--entrysets] | [--count])")
}
예제 #16
0
func init() {
	flag.Usage = flagutil.SimpleUsage("Write a delimited stream of entries from stdin to a GraphStore",
		"[--batch_size entries] [--workers n] --graphstore spec")
	gsutil.Flag(&gs, "graphstore", "GraphStore to which to write the entry stream")
}
예제 #17
0
파일: ktags.go 프로젝트: jwatt/kythe
func init() {
	flag.Usage = flagutil.SimpleUsage("Emit ctags-formatted lines for the definitions in the given files",
		"[--api address] <file>...")
}
예제 #18
0
파일: write_tables.go 프로젝트: baev/kythe
func init() {
	gsutil.Flag(&gs, "graphstore", "GraphStore to read")
	flag.Usage = flagutil.SimpleUsage("Creates a combined xrefs/filetree/search serving table based on a given GraphStore",
		"--graphstore spec --out path")
}
예제 #19
0
func init() {
	flag.Usage = flagutil.SimpleUsage(
		"Scan/print each key-value in the given LevelDB(s)",
		"[--string_key=false] [--string_value|--proto_value type]\n[--json] [--format f] [--prefix p] <leveldb-path>+")
}