grim/convey

Update to Go 1.21 and use some new helpers

5 months ago, Elliott Sales de Andrade
adb6eb2a7d21
Update to Go 1.21 and use some new helpers

`strings.Cut` was added in 1.18, and `maps`/`slices` in 1.21.

Testing Done:
Ran `go test ./...`

Reviewed at https://reviews.imfreedom.org/r/2870/
package script
import (
"errors"
)
var (
ErrFailedToDetermineShell = errors.New("failed to determine which shell to use")
ErrNoCommandsOrFilename = errors.New("a filename or at least one command must be specified")
ErrNotSupportedOnWindows = errors.New("this tasks is not supported on windows")
ErrOnlyFilenameOrCommands = errors.New("only one of filename and commands may be specified")
ErrScriptOutsideOfWorkspace = errors.New("script is outside of the workspace")
)