Expand description
Command-line plugins (internal/pluginhost/command_line.go).
Plugins declare flags before the main parse; the binary’s Go-rules flag parser asks
Host::command_line_flag for names it does not know and records values with
Host::set_command_line_flag. When any plugin flag was given,
Host::execute_command_line runs the owning plugins instead of the server.
Structs§
- CliFlag
- One registered plugin flag (Go
commandLineFlagRecord).
Enums§
- Output
- Output of one plugin command, in the order Go writes it.
Functions§
- format_
duration - Go
time.Duration.String. - format_
float_ g - Go
strconv.FormatFloat(f, 'g', -1, 64). - normalize_
flag_ type - Go
normalizeCommandLineFlagType. - normalize_
flag_ value - Go
normalizeCommandLineFlagValue. - parse_
bool - Go
strconv.ParseBool. - parse_
float - Go
strconv.ParseFloat(s, 64): out of range is an error rather than ±Inf, NaN takes no sign, and underscores may separate digits. ponytail: Go’s hexadecimal form (0x1p-2) is rejected; plugin flags are decimal in practice. Upgrade by portingatofHexif a plugin needs it. - valid_
flag_ name - Go
validCommandLineFlagName.