ignore doc fields containing `TODO`

This commit is contained in:
Adrien Delorme 2019-08-27 13:55:00 +02:00
parent 94bb33db57
commit 0fe48691e8
4 changed files with 4 additions and 16 deletions

View File

@ -105,6 +105,10 @@ func main() {
} else {
docs = strings.Join(camelcase.Split(field.Names[0].Name), " ")
}
if strings.Contains(docs, "TODO") {
continue
}
fieldType := string(b[field.Type.Pos()-1 : field.Type.End()-1])
fieldType = strings.ReplaceAll(fieldType, "*", `\*`)

View File

@ -217,8 +217,3 @@
"BUILDNAME" is the name of the build. Currently, no file extension will be
used unless it is specified in this option.
- `ssh_wait_timeout` (time.Duration) - These are deprecated, but we keep them around for BC
TODO(@mitchellh): remove
- `run_once` (bool) - TODO(mitchellh): deprecate

View File

@ -11,6 +11,3 @@
does not setup forwarded port mapping for SSH requests and uses ssh_port
on the host to communicate to the virtual machine.
- `ssh_wait_timeout` (time.Duration) - These are deprecated, but we keep them around for BC
TODO(@mitchellh): remove

View File

@ -1,8 +0,0 @@
<!-- Code generated from the comments of the SSHConfig struct in builder/vmware/common/ssh_config.go; DO NOT EDIT MANUALLY -->
- `ssh_skip_request_pty` (bool) - These are deprecated, but we keep them around for BC
TODO(@mitchellh): remove
- `ssh_wait_timeout` (time.Duration) - These are deprecated, but we keep them around for BC
TODO(@mitchellh): remove