Skip to content

Commit 51010ab

Browse files
Merge pull request #46 from francisbouvier/master
go-thrust command tool
2 parents 59ae10c + 8ec8b3d commit 51010ab

File tree

17 files changed

+55
-16
lines changed

17 files changed

+55
-16
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ Cross Platform UI Kit powered by Blink/V8/Chromium Content Lib
1212
Current Thrust Version 0.7.5
1313

1414
```bash
15-
go get -d github.com/miketheprogrammer/go-thrust
15+
go get github.com/miketheprogrammer/go-thrust
1616

17-
# -d instructs go get not to try to build, after go get, please do following the install instructions
18-
#install deps
17+
# Install deps
1918
go get -v github.com/alexcesaro/log
19+
20+
# Install Thrust
21+
go-thrust install
2022
```
2123

2224
![Logo Thrust](http://i.imgur.com/DwFKI0J.png)

examples/chat/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"flag"
55
"fmt"
66

7-
"github.com/miketheprogrammer/go-thrust"
7+
"github.com/miketheprogrammer/go-thrust/thrust"
88
)
99

1010
var (

examples/chat/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"time"
1313

1414
"github.com/gorilla/websocket"
15-
"github.com/miketheprogrammer/go-thrust"
15+
"github.com/miketheprogrammer/go-thrust/thrust"
1616
"github.com/tv42/birpc"
1717
"github.com/tv42/birpc/wetsock"
1818
"github.com/tv42/topic"

examples/jankybrowser/browser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"log"
88
"net/http"
99

10-
"github.com/miketheprogrammer/go-thrust"
10+
"github.com/miketheprogrammer/go-thrust/thrust"
1111
)
1212

1313
var (

main.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"os"
6+
7+
"github.com/codegangsta/cli"
8+
"github.com/miketheprogrammer/go-thrust/lib/spawn"
9+
)
10+
11+
func install(c *cli.Context) {
12+
spawn.SetBaseDirectory("") // Default to usr.homedir.
13+
tp := spawn.NewThrustProvisioner()
14+
if err := tp.Provision(); err != nil {
15+
panic(err)
16+
}
17+
fmt.Println("Thrust installed")
18+
}
19+
20+
func main() {
21+
app := cli.NewApp()
22+
app.Name = "go-thrust"
23+
app.Usage = "Tools to developp Thrust applications in Go"
24+
25+
app.Commands = []cli.Command{
26+
{
27+
Name: "install",
28+
ShortName: "i",
29+
Usage: "Install Thrust",
30+
Action: func(c *cli.Context) {
31+
install(c)
32+
},
33+
},
34+
}
35+
36+
app.Run(os.Args)
37+
}
File renamed without changes.
File renamed without changes.

tutorials/advanced_session/advanced_session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package main
22

33
import (
4-
"github.com/miketheprogrammer/go-thrust"
54
"github.com/miketheprogrammer/go-thrust/lib/bindings/session"
65
"github.com/miketheprogrammer/go-thrust/lib/commands"
76
"github.com/miketheprogrammer/go-thrust/lib/common"
7+
"github.com/miketheprogrammer/go-thrust/thrust"
88
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
99
)
1010

tutorials/advanced_window_devtools/advanced_window_devtools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"time"
55

6-
"github.com/miketheprogrammer/go-thrust"
6+
"github.com/miketheprogrammer/go-thrust/thrust"
77
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
88
)
99

tutorials/basic_menu/basic_menu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/miketheprogrammer/go-thrust"
4+
"github.com/miketheprogrammer/go-thrust/thrust"
55
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
66
)
77

tutorials/basic_menu_events/basic_menu_events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package main
33
import (
44
"fmt"
55

6-
"github.com/miketheprogrammer/go-thrust"
76
"github.com/miketheprogrammer/go-thrust/lib/bindings/menu"
87
"github.com/miketheprogrammer/go-thrust/lib/commands"
8+
"github.com/miketheprogrammer/go-thrust/thrust"
99
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
1010
)
1111

tutorials/basic_multiple_windows/basic_multiple_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/miketheprogrammer/go-thrust"
4+
"github.com/miketheprogrammer/go-thrust/thrust"
55
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
66
)
77

tutorials/basic_remote_messaging/basic_remote_messaging.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"net/http"
66

7-
"github.com/miketheprogrammer/go-thrust"
87
"github.com/miketheprogrammer/go-thrust/lib/bindings/window"
98
"github.com/miketheprogrammer/go-thrust/lib/commands"
9+
"github.com/miketheprogrammer/go-thrust/thrust"
1010
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
1111
)
1212

tutorials/basic_session/basic_session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/miketheprogrammer/go-thrust"
4+
"github.com/miketheprogrammer/go-thrust/thrust"
55
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
66
)
77

tutorials/basic_webserver_app/basic_webserver_app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
"github.com/miketheprogrammer/go-thrust"
7+
"github.com/miketheprogrammer/go-thrust/thrust"
88
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
99
)
1010

tutorials/basic_window/basic_window.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"time"
55

6-
"github.com/miketheprogrammer/go-thrust"
6+
"github.com/miketheprogrammer/go-thrust/thrust"
77
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
88
)
99

tutorials/basic_window_events/basic_window_events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"fmt"
66
"time"
77

8-
"github.com/miketheprogrammer/go-thrust"
98
"github.com/miketheprogrammer/go-thrust/lib/commands"
109
"github.com/miketheprogrammer/go-thrust/lib/connection"
10+
"github.com/miketheprogrammer/go-thrust/thrust"
1111
"github.com/miketheprogrammer/go-thrust/tutorials/provisioner"
1212
)
1313

0 commit comments

Comments
 (0)