Documentation
¶
Overview ¶
Package flags holds the command line flags of the clients of ratd: the ratd to reach and the client directory to present to it. They are declared once, for rat and rat-tool check, so that a harness command line is checked by copying it, with the same names and the same checks. The server has no default, as which machine to reach is the whole point of the configuration.
Internal: package connect, which programs outside rat import, gets no dependency on the command line library.
Index ¶
Constants ¶
View Source
const ( ServerFlag = "server" BundleFlag = "bundle" )
Names of the flags.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Target ¶
type Target struct {
// Server is the address of ratd, HOST:PORT.
Server string
// Bundle is the client directory of a bundle, which names the session.
Bundle string
}
Target is a ratd to reach, and the client directory to present to it.
func FromCommand ¶
FromCommand returns the target named by the flags of cmd, checked while parsing them.
Click to show internal directories.
Click to hide internal directories.