Jiri Simsa | 3f4e92d | 2015-03-24 21:26:37 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 5 | // This file was auto-generated via go generate. |
| 6 | // DO NOT UPDATE MANUALLY |
| 7 | |
| 8 | /* |
Todd Wang | 6ed3b6c | 2015-04-08 14:37:04 -0700 | [diff] [blame] | 9 | Command vom helps debug the Vanadium Object Marshaling wire protocol. |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 10 | |
| 11 | Usage: |
| 12 | vom <command> |
| 13 | |
| 14 | The vom commands are: |
| 15 | decode Decode data encoded in the vom format |
| 16 | dump Dump data encoded in the vom format into formatted output |
| 17 | help Display help for commands or topics |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 18 | |
Matt Rosencrantz | 83b0b7f | 2015-03-26 16:17:01 -0700 | [diff] [blame] | 19 | The global flags are: |
Jiri Simsa | 26f1c4d | 2015-08-09 17:49:40 -0700 | [diff] [blame] | 20 | -metadata=<just specify -metadata to activate> |
Todd Wang | 3f7ceb4 | 2015-05-04 17:51:34 -0700 | [diff] [blame] | 21 | Displays metadata for the program and exits. |
Matt Rosencrantz | 83b0b7f | 2015-03-26 16:17:01 -0700 | [diff] [blame] | 22 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 23 | Vom decode - Decode data encoded in the vom format |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 24 | |
| 25 | Decode decodes data encoded in the vom format. If no arguments are provided, |
| 26 | decode reads the data from stdin, otherwise the argument is the data. |
| 27 | |
| 28 | By default the data is assumed to be represented in hex, with all whitespace |
| 29 | anywhere in the data ignored. Use the -data flag to specify other data |
| 30 | representations. |
| 31 | |
| 32 | Usage: |
| 33 | vom decode [flags] [data] |
| 34 | |
| 35 | [data] is the data to decode; if not specified, reads from stdin |
| 36 | |
| 37 | The vom decode flags are: |
| 38 | -data=Hex |
| 39 | Data representation, one of [Hex Binary] |
| 40 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 41 | Vom dump - Dump data encoded in the vom format into formatted output |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 42 | |
| 43 | Dump dumps data encoded in the vom format, generating formatted output |
| 44 | describing each portion of the encoding. If no arguments are provided, dump |
| 45 | reads the data from stdin, otherwise the argument is the data. |
| 46 | |
| 47 | By default the data is assumed to be represented in hex, with all whitespace |
| 48 | anywhere in the data ignored. Use the -data flag to specify other data |
| 49 | representations. |
| 50 | |
| 51 | Calling "vom dump" with no flags and no arguments combines the default stdin |
| 52 | mode with the default hex mode. This default mode is special; certain non-hex |
| 53 | characters may be input to represent commands: |
| 54 | . (period) Calls Dumper.Status to get the current decoding status. |
| 55 | ; (semicolon) Calls Dumper.Flush to flush output and start a new message. |
| 56 | |
| 57 | This lets you cut-and-paste hex strings into your terminal, and use the commands |
| 58 | to trigger status or flush calls; i.e. a rudimentary debugging UI. |
| 59 | |
| 60 | See v.io/v23/vom.Dumper for details on the dump output. |
| 61 | |
| 62 | Usage: |
| 63 | vom dump [flags] [data] |
| 64 | |
| 65 | [data] is the data to dump; if not specified, reads from stdin |
| 66 | |
| 67 | The vom dump flags are: |
| 68 | -data=Hex |
| 69 | Data representation, one of [Hex Binary] |
| 70 | |
Todd Wang | 1144045 | 2015-05-29 18:05:29 -0700 | [diff] [blame] | 71 | Vom help - Display help for commands or topics |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 72 | |
| 73 | Help with no args displays the usage of the parent command. |
| 74 | |
| 75 | Help with args displays the usage of the specified sub-command or help topic. |
| 76 | |
| 77 | "help ..." recursively displays help for all commands and topics. |
| 78 | |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 79 | Usage: |
| 80 | vom help [flags] [command/topic ...] |
| 81 | |
| 82 | [command/topic ...] optionally identifies a specific sub-command or help topic. |
| 83 | |
| 84 | The vom help flags are: |
Todd Wang | 1624bf9 | 2015-04-22 16:53:57 -0700 | [diff] [blame] | 85 | -style=compact |
| 86 | The formatting style for help output: |
| 87 | compact - Good for compact cmdline output. |
| 88 | full - Good for cmdline output, shows all global flags. |
| 89 | godoc - Good for godoc processing. |
| 90 | Override the default by setting the CMDLINE_STYLE environment variable. |
Todd Wang | f1550cf | 2015-05-11 10:58:41 -0700 | [diff] [blame] | 91 | -width=<terminal width> |
| 92 | Format output to this target width in runes, or unlimited if width < 0. |
| 93 | Defaults to the terminal width if available. Override the default by setting |
| 94 | the CMDLINE_WIDTH environment variable. |
Todd Wang | 991ecf1 | 2015-02-25 17:38:37 -0800 | [diff] [blame] | 95 | */ |
| 96 | package main |