package
0.0.0-20240625190017-a0fef5fe53bc
Repository: https://github.com/clearlinux/clr-installer.git
Documentation: pkg.go.dev
# Functions
CracklibCheck runs the cracklib-check executable piping password to stdin of cmd and writing stdoutput to byte buffer stringtype is used to inform kind of information we are checking: password or passphrase.
PipeRunAndLog is similar to RunAndLog runs a command and writes the output to default logger and also writes in to the process stdin.
PipeRunAndPipeOut is similar to PipeRunAndLog but runs a command by feeding a string to stdin of Cmd and output is written to a byte buffer instead of a log.
Run executes a command and uses writer to write both stdout and stderr args are the actual command and its arguments.
RunAndLog executes a command (similar to Run) but takes care of writing the output to default logger.
RunAndLogWithEnv does the same as RunAndLog but it changes the execution's environment variables adding the provided ones by the env argument.
RunAndProcessOutput executes a command and process the output from Stdout and Stderr according to the implementor args are the actual command and its arguments.
# Interfaces
Output interface allows implementors to process the output from a command according to their specific case.