Skip to content

Commit

Permalink
windows now supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Levinson committed Nov 17, 2017
1 parent a15fc72 commit 12b82de
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 278 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ builds:
goos:
- darwin
- linux
- windows
goarch:
- amd64
ldflags: -s
Expand Down
258 changes: 0 additions & 258 deletions cmd/examplebin/hades/embeds.go

This file was deleted.

12 changes: 0 additions & 12 deletions cmd/examplebin/hades/entry.go

This file was deleted.

7 changes: 0 additions & 7 deletions cmd/examplebin/main.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/gscript/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func main() {
app := cli.NewApp()
app.Name = "gscript"
app.Usage = "Interact with the Genesis Scripting Engine (GSE)"
app.Version = "0.0.1"
app.Version = "0.0.2"
app.Authors = []cli.Author{
cli.Author{
Name: "Alex Levinson",
Expand Down
2 changes: 2 additions & 0 deletions session.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !windows

package gscript

import (
Expand Down
20 changes: 20 additions & 0 deletions session_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// +build windows

package gscript

import (
"github.com/robertkrimen/otto"
)

func (e *Engine) DebugConsole(call otto.FunctionCall) otto.Value {
e.InteractiveSession()
return otto.TrueValue()
}

func (e *Engine) SessionExecutor(in string) {
return
}

func (e *Engine) InteractiveSession() {
e.LogErrorf("Genesis REPL is not available on Windows.")
}

0 comments on commit 12b82de

Please sign in to comment.