feat(cli): add basis for new "emacs-builder" CLI tool written in Go

This will eventually replace the build-emacs-for-macos script that's
written in Ruby. The migration of functionality will happen bit by bit
over time.
This commit is contained in:
2021-05-23 18:27:13 +01:00
parent 3e1eb01e24
commit 8d87c01db7
9 changed files with 523 additions and 0 deletions

24
cmd/emacs-builder/main.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"fmt"
"os"
"github.com/jimeh/build-emacs-for-macos/pkg/cli"
)
var (
version string
commit string
date string
)
func main() {
cliInstance := cli.New(version, commit, date)
err := cliInstance.Run(os.Args)
if err != nil {
fmt.Fprintf(os.Stderr, "ERROR: %s\n", err.Error())
os.Exit(1)
}
}