Struct git_credentials::Program
source · pub struct Program {
pub kind: Kind,
pub stderr: bool,
/* private fields */
}
Expand description
A program/executable implementing the credential helper protocol.
Fields§
§kind: Kind
The kind of program, ready for launch.
stderr: bool
If true, stderr is enabled, which is the default.
Implementations§
source§impl Program
impl Program
Initialization
sourcepub fn from_custom_definition(input: impl Into<BString>) -> Self
pub fn from_custom_definition(input: impl Into<BString>) -> Self
Parse the given input as per the custom helper definition, supporting !<script>
, name
and /absolute/name
, the latter two
also support arguments which are ignored here.
source§impl Program
impl Program
Builder
sourcepub fn suppress_stderr(self) -> Self
pub fn suppress_stderr(self) -> Self
By default stderr
of programs is inherited and typically displayed in the terminal.