Skip to content

go-thrust command tool #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ Cross Platform UI Kit powered by Blink/V8/Chromium Content Lib
Current Thrust Version 0.7.5

```bash
go get -d github.com/miketheprogrammer/go-thrust
go get github.com/miketheprogrammer/go-thrust

# -d instructs go get not to try to build, after go get, please do following the install instructions
#install deps
# Install deps
go get -v github.com/alexcesaro/log

# Install Thrust
go-thrust install
```

![Logo Thrust](http://i.imgur.com/DwFKI0J.png)
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"fmt"

"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

"github.com/gorilla/websocket"
"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/tv42/birpc"
"github.com/tv42/birpc/wetsock"
"github.com/tv42/topic"
Expand Down
2 changes: 1 addition & 1 deletion examples/jankybrowser/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"net/http"

"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
)

var (
Expand Down
37 changes: 37 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package main

import (
"fmt"
"os"

"github.com/codegangsta/cli"
"github.com/miketheprogrammer/go-thrust/lib/spawn"
)

func install(c *cli.Context) {
spawn.SetBaseDirectory("") // Default to usr.homedir.
tp := spawn.NewThrustProvisioner()
if err := tp.Provision(); err != nil {
panic(err)
}
fmt.Println("Thrust installed")
}

func main() {
app := cli.NewApp()
app.Name = "go-thrust"
app.Usage = "Tools to developp Thrust applications in Go"

app.Commands = []cli.Command{
{
Name: "install",
ShortName: "i",
Usage: "Install Thrust",
Action: func(c *cli.Context) {
install(c)
},
},
}

app.Run(os.Args)
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tutorials/advanced_session/advanced_session.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/lib/bindings/session"
"github.com/miketheprogrammer/go-thrust/lib/commands"
"github.com/miketheprogrammer/go-thrust/lib/common"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"time"

"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/basic_menu/basic_menu.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/basic_menu_events/basic_menu_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"fmt"

"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/lib/bindings/menu"
"github.com/miketheprogrammer/go-thrust/lib/commands"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/basic_multiple_windows/basic_multiple_windows.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/basic_remote_messaging/basic_remote_messaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"net/http"

"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/lib/bindings/window"
"github.com/miketheprogrammer/go-thrust/lib/commands"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/basic_session/basic_session.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/basic_webserver_app/basic_webserver_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/basic_window/basic_window.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"time"

"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down
2 changes: 1 addition & 1 deletion tutorials/basic_window_events/basic_window_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"time"

"github.com/miketheprogrammer/go-thrust"
"github.com/miketheprogrammer/go-thrust/lib/commands"
"github.com/miketheprogrammer/go-thrust/lib/connection"
"github.com/miketheprogrammer/go-thrust/thrust"
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
)

Expand Down