Documentation ¶
Overview ¶
Package commands provides utilities for executing commands within libosdev
Index ¶
- func AddGroup(root, groupName string, groupID int) error
- func AddSystemUser(root, userName, gecos, home, shell string, uid, gid int) error
- func AddUser(root, userName, gecos, home, shell string, uid, gid int) error
- func ChrootExec(dir, command string) error
- func ExecStdoutArgs(command string, args []string) error
- func ExecStdoutArgsDir(dir string, command string, args []string) error
- func SetStderr(w io.Writer)
- func SetStdin(r io.Reader)
- func SetStdout(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSystemUser ¶
AddSystemUser will chroot into the given root and add a system user
func ChrootExec ¶
ChrootExec will run a given command in the chroot directory
func ExecStdoutArgs ¶
ExecStdoutArgs is a convenience function to execute a command on stdout with the given arguments
func ExecStdoutArgsDir ¶
ExecStdoutArgsDir is a convenience function to execute a command on stdout with the given arguments, in the given working directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.