Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 1 | // This file was auto-generated via go generate. |
| 2 | // DO NOT UPDATE MANUALLY |
| 3 | |
| 4 | /* |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 5 | The vrpc tool provides command-line access to Vanadium servers via Remote |
| 6 | Procedure Call. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 7 | |
| 8 | Usage: |
| 9 | vrpc <command> |
| 10 | |
| 11 | The vrpc commands are: |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 12 | signature Describe the interfaces of a Vanadium server |
| 13 | call Call a method of a Vanadium server |
| 14 | identify Reveal blessings presented by a Vanadium server |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 15 | help Display help for commands or topics |
| 16 | Run "vrpc help [command]" for command usage. |
| 17 | |
| 18 | The global flags are: |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 19 | -alsologtostderr=true |
| 20 | log to standard error as well as files |
| 21 | -log_backtrace_at=:0 |
| 22 | when logging hits line file:N, emit a stack trace |
| 23 | -log_dir= |
| 24 | if non-empty, write log files to this directory |
| 25 | -logtostderr=false |
| 26 | log to standard error instead of files |
| 27 | -max_stack_buf_size=4292608 |
| 28 | max size in bytes of the buffer to use for logging stack traces |
| 29 | -stderrthreshold=2 |
| 30 | logs at or above this threshold go to stderr |
| 31 | -v=0 |
| 32 | log level for V logs |
Jiri Simsa | 3540e3a | 2014-12-26 07:54:09 -0800 | [diff] [blame] | 33 | -vanadium.i18n_catalogue= |
| 34 | 18n catalogue files to load, comma separated |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 35 | -veyron.credentials= |
| 36 | directory to use for storing security credentials |
Robin Thellend | 8fea01c | 2014-12-11 13:48:10 -0800 | [diff] [blame] | 37 | -veyron.namespace.root=[/ns.dev.v.io:8101] |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 38 | local namespace root; can be repeated to provided multiple roots |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 39 | -veyron.vtrace.cache_size=1024 |
| 40 | The number of vtrace traces to store in memory. |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 41 | -veyron.vtrace.collect_regexp= |
| 42 | Spans and annotations that match this regular expression will trigger trace |
| 43 | collection. |
| 44 | -veyron.vtrace.dump_on_shutdown=true |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 45 | If true, dump all stored traces on runtime shutdown. |
| 46 | -veyron.vtrace.sample_rate=0 |
| 47 | Rate (from 0.0 to 1.0) to sample vtrace traces. |
| 48 | -vmodule= |
| 49 | comma-separated list of pattern=N settings for file-filtered logging |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 50 | |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 51 | Vrpc Signature |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 52 | |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 53 | Signature connects to the Vanadium server identified by <server>. |
| 54 | |
| 55 | If no [method] is provided, returns all interfaces implemented by the server. |
| 56 | |
| 57 | If a [method] is provided, returns the signature of just that method. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 58 | |
| 59 | Usage: |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 60 | vrpc signature <server> [method] |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 61 | |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 62 | <server> identifies a Vanadium server. It can either be the object address of |
| 63 | the server, or an object name that will be resolved to an end-point. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 64 | |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 65 | [method] is the optional server method name. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 66 | |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 67 | Vrpc Call |
| 68 | |
| 69 | Call connects to the Vanadium server identified by <server> and calls the |
| 70 | <method> with the given positional [args...], returning results on stdout. |
| 71 | |
| 72 | TODO(toddw): stdin is read for streaming arguments sent to the server. An EOF |
| 73 | on stdin (e.g. via ^D) causes the send stream to be closed. |
| 74 | |
| 75 | Regardless of whether the call is streaming, the main goroutine blocks for |
| 76 | streaming and positional results received from the server. |
| 77 | |
| 78 | All input arguments (both positional and streaming) are specified as VDL |
| 79 | expressions, with commas separating multiple expressions. Positional arguments |
| 80 | may also be specified as separate command-line arguments. Streaming arguments |
| 81 | may also be specified as separate newline-terminated expressions. |
| 82 | |
| 83 | The method signature is always retrieved from the server as a first step. This |
| 84 | makes it easier to input complex typed arguments, since the top-level type for |
| 85 | each argument is implicit and doesn't need to be specified. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 86 | |
| 87 | Usage: |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 88 | vrpc call <server> <method> [args...] |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 89 | |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 90 | <server> identifies a Vanadium server. It can either be the object address of |
| 91 | the server, or an object name that will be resolved to an end-point. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 92 | |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 93 | <method> is the server method to call. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 94 | |
Todd Wang | 06eeab0 | 2015-01-20 11:34:14 -0800 | [diff] [blame] | 95 | [args...] are the positional input arguments, specified as VDL expressions. |
| 96 | |
| 97 | Vrpc Identify |
| 98 | |
| 99 | Identify connects to the Vanadium server identified by <server> and dumps out |
| 100 | the blessings presented by that server (and the subset of those that are |
| 101 | considered valid by the principal running this tool) to standard output. |
| 102 | |
| 103 | Usage: |
| 104 | vrpc identify <server> |
| 105 | |
| 106 | <server> identifies a Vanadium server. It can either be the object address of |
| 107 | the server, or an object name that will be resolved to an end-point. |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 108 | |
| 109 | Vrpc Help |
| 110 | |
| 111 | Help with no args displays the usage of the parent command. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 112 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 113 | Help with args displays the usage of the specified sub-command or help topic. |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 114 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 115 | "help ..." recursively displays help for all commands and topics. |
| 116 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 117 | The output is formatted to a target width in runes. The target width is |
| 118 | determined by checking the environment variable CMDLINE_WIDTH, falling back on |
| 119 | the terminal width from the OS, falling back on 80 chars. By setting |
| 120 | CMDLINE_WIDTH=x, if x > 0 the width is x, if x < 0 the width is unlimited, and |
| 121 | if x == 0 or is unset one of the fallbacks is used. |
| 122 | |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 123 | Usage: |
| 124 | vrpc help [flags] [command/topic ...] |
| 125 | |
| 126 | [command/topic ...] optionally identifies a specific sub-command or help topic. |
| 127 | |
Cosmos Nicolaou | d83b90b | 2014-11-30 15:01:31 -0800 | [diff] [blame] | 128 | The vrpc help flags are: |
| 129 | -style=text |
| 130 | The formatting style for help output, either "text" or "godoc". |
Todd Wang | 0d12d71 | 2014-10-06 17:25:41 -0700 | [diff] [blame] | 131 | */ |
| 132 | package main |