blob: 82a6a30443fe72b64a21f394da9e667984b662af [file] [log] [blame]
Jiri Simsa3f4e92d2015-03-24 21:26:37 -07001// 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 Wang991ecf12015-02-25 17:38:37 -08005// This file was auto-generated via go generate.
6// DO NOT UPDATE MANUALLY
7
8/*
Todd Wang6ed3b6c2015-04-08 14:37:04 -07009Command vom helps debug the Vanadium Object Marshaling wire protocol.
Todd Wang991ecf12015-02-25 17:38:37 -080010
11Usage:
12 vom <command>
13
14The 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 Wang991ecf12015-02-25 17:38:37 -080018
Matt Rosencrantz83b0b7f2015-03-26 16:17:01 -070019The global flags are:
Jiri Simsa26f1c4d2015-08-09 17:49:40 -070020 -metadata=<just specify -metadata to activate>
Todd Wang3f7ceb42015-05-04 17:51:34 -070021 Displays metadata for the program and exits.
Matt Rosencrantz83b0b7f2015-03-26 16:17:01 -070022
Todd Wang11440452015-05-29 18:05:29 -070023Vom decode - Decode data encoded in the vom format
Todd Wang991ecf12015-02-25 17:38:37 -080024
25Decode decodes data encoded in the vom format. If no arguments are provided,
26decode reads the data from stdin, otherwise the argument is the data.
27
28By default the data is assumed to be represented in hex, with all whitespace
29anywhere in the data ignored. Use the -data flag to specify other data
30representations.
31
32Usage:
33 vom decode [flags] [data]
34
35[data] is the data to decode; if not specified, reads from stdin
36
37The vom decode flags are:
38 -data=Hex
39 Data representation, one of [Hex Binary]
40
Todd Wang11440452015-05-29 18:05:29 -070041Vom dump - Dump data encoded in the vom format into formatted output
Todd Wang991ecf12015-02-25 17:38:37 -080042
43Dump dumps data encoded in the vom format, generating formatted output
44describing each portion of the encoding. If no arguments are provided, dump
45reads the data from stdin, otherwise the argument is the data.
46
47By default the data is assumed to be represented in hex, with all whitespace
48anywhere in the data ignored. Use the -data flag to specify other data
49representations.
50
51Calling "vom dump" with no flags and no arguments combines the default stdin
52mode with the default hex mode. This default mode is special; certain non-hex
53characters 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
57This lets you cut-and-paste hex strings into your terminal, and use the commands
58to trigger status or flush calls; i.e. a rudimentary debugging UI.
59
60See v.io/v23/vom.Dumper for details on the dump output.
61
62Usage:
63 vom dump [flags] [data]
64
65[data] is the data to dump; if not specified, reads from stdin
66
67The vom dump flags are:
68 -data=Hex
69 Data representation, one of [Hex Binary]
70
Todd Wang11440452015-05-29 18:05:29 -070071Vom help - Display help for commands or topics
Todd Wang991ecf12015-02-25 17:38:37 -080072
73Help with no args displays the usage of the parent command.
74
75Help 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 Wang991ecf12015-02-25 17:38:37 -080079Usage:
80 vom help [flags] [command/topic ...]
81
82[command/topic ...] optionally identifies a specific sub-command or help topic.
83
84The vom help flags are:
Todd Wang1624bf92015-04-22 16:53:57 -070085 -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 Wangf1550cf2015-05-11 10:58:41 -070091 -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 Wang991ecf12015-02-25 17:38:37 -080095*/
96package main