当前位置: 首页>>代码示例>>Golang>>正文


Golang flagutil.SimpleUsage函数代码示例

本文整理汇总了Golang中kythe/io/kythe/go/util/flagutil.SimpleUsage函数的典型用法代码示例。如果您正苦于以下问题:Golang SimpleUsage函数的具体用法?Golang SimpleUsage怎么用?Golang SimpleUsage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SimpleUsage函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: init

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")
}
开发者ID:herberteuler,项目名称:kythe,代码行数:8,代码来源:write_entries.go

示例2: init

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]")
}
开发者ID:hunteras,项目名称:kythe,代码行数:8,代码来源:http_server.go

示例3: init

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]")
}
开发者ID:gameduell,项目名称:kythe,代码行数:10,代码来源:kwazthis.go

示例4: init

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
@[email protected] replaced with --analyzer_port.`,
		`[--analyzer_port int]
<analyzer-command> [analyzer-args...] -- <kindex-file...>`)
}
开发者ID:benjyw,项目名称:kythe,代码行数:11,代码来源:analyzer_driver.go

示例5: init

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]`)
}
开发者ID:kidaa,项目名称:kythe,代码行数:20,代码来源:kwazthis.go

示例6: init

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]]")
}
开发者ID:gameduell,项目名称:kythe,代码行数:5,代码来源:triples.go

示例7: init

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]")
}
开发者ID:benjyw,项目名称:kythe,代码行数:4,代码来源:directory_indexer.go

示例8: init

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")
}
开发者ID:bowlofstew,项目名称:kythe,代码行数:6,代码来源:write_tables.go

示例9: init

func init() {
	flag.Usage = flagutil.SimpleUsage("Remove duplicate records from a delimited stream")
}
开发者ID:jwatt,项目名称:kythe,代码行数:3,代码来源:dedup_stream.go

示例10: init

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")
}
开发者ID:gameduell,项目名称:kythe,代码行数:5,代码来源:write_entries.go

示例11: init

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>+")
}
开发者ID:bowlofstew,项目名称:kythe,代码行数:5,代码来源:scan_leveldb.go


注:本文中的kythe/io/kythe/go/util/flagutil.SimpleUsage函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。