Categorygithub.com/Songmu/wrapcommander
modulepackage
0.1.0
Repository: https://github.com/songmu/wrapcommander.git
Documentation: pkg.go.dev

# README

wrapcommander

Build Status MIT License GoDoc

Description

Utility for creating wrapper command.

Author

Songmu

# Functions

ErrorToWaitStatus try to convert error into syscall.WaitStatus.
IsExecFormatError returns a boolean indicating whether the error is known to report that format of an executable file is invalid.
IsInvoked returns a boolean indicating whether the error is known to report that the command is invoked or not.
IsNotExist is alias of os.IsNotExist for now.
IsNotFoundInPATH returns a boolean indicating whether the error is known to report that a prog is not found in $PATH.
IsPermission is alias of os.IsPermission for now.
ResolveExitCode retruns a int as command exit code from an error.
ResolveExitStatus resolve ExitStatus from command error.
SeparateArgs separates command line arguments for wrapper command.
WaitStatusToExitCode converts WaitStatus to ExitCode.

# Constants

exit statuses are same with GNU coreutils.
exit statuses are same with GNU coreutils.
exit statuses are same with GNU coreutils.
exit statuses are same with GNU coreutils.

# Structs

ExitStatus represents command exit status information.