func exit(status int) {
	if !TestEnvironment {
		os.Exit(status)
	}
}
exit causes the current program to exit with the given status code. If
running in a test environment, every exit call is a no-op.
package main
import (
	"bytes"
	_ "embed"
	"encoding/json"
	"errors"
	"flag"
	"fmt"
	"io"
	"io/fs"
	"os"
	"os/exec"
	"path/filepath"
	"runtime"
	"runtime/debug"
	"strconv"
	"strings"
	"golang.org/x/mod/modfile"
)
var runSource []byte
var simpleScriggofileContent = []byte("\nIMPORT STANDARD LIBRARY\n")
func init() {
	if os.Getenv("SCRIGGO_INIT_EMPTY_SCRIGGOFILE") != "" {
		simpleScriggofileContent = []byte{}
	}
}
func main() {
	flag.Usage = commandsHelp["scriggo"]
	if len(os.Args) == 1 {
		flag.Usage()
		exit(0)
		return
	}
	cmdArg := os.Args[1]
	os.Args = append(os.Args[:1], os.Args[2:]...)
	cmd, ok := commands[cmdArg]
	if !ok {
		stderr(
			fmt.Sprintf("scriggo %s: unknown command", cmdArg),
			`Run 'scriggo help' for usage.`,
		)
		exit(1)
		return
	}
	cmd()
	return
}
var TestEnvironment = false