Update project structure

This commit is contained in:
erroneousboat 2016-10-19 09:08:31 +02:00
parent 453dc8dfd7
commit d2fb5c06d9
17 changed files with 19 additions and 20 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
src/vendor/*
bin/
vendor/*
!vendor.json

View File

@ -32,21 +32,21 @@ test:
# `./bin/slack-term`
# Placement of the binary
#
# `./src/`
# `.`
# Location of the source files
build:
@ echo "+ $@"
@ CGO_ENABLED=0 go build -a -installsuffix cgo -o ./bin/slack-term ./src/
@ CGO_ENABLED=0 go build -a -installsuffix cgo -o ./bin/slack-term .
# Cross-compile
# http://dave.cheney.net/2015/08/22/cross-compilation-with-go-1-5
build-linux:
@ echo "+ $@"
@ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -o ./bin/slack-term-linux-amd64 ./src/
@ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -o ./bin/slack-term-linux-amd64 .
build-mac:
@ echo "+ $@"
@ GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -o ./bin/slack-term-darwin-amd64 ./src/
@ GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo -o ./bin/slack-term-darwin-amd64 .
run: build
@ echo "+ $@"
@ -54,7 +54,7 @@ run: build
install: build
@ echo "+ $@"
@ cp ./bin/slack-term ~/bin
@ go install .
build-all: build build-linux build-mac

View File

@ -14,8 +14,6 @@ Getting started
compatible version for your system, and place where you can access it from
the command line like, `~/bin`, `/usr/local/bin`, or `/usr/local/sbin`.
For the latest version, click [here](https://github.com/erroneousboat/slack-term/tree/master/bin)
2. Get a slack token, click [here](https://api.slack.com/docs/oauth-test-tokens)
3. Create a `slack-term.json` file, place it in your home directory. The file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -6,7 +6,7 @@ import (
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/service"
"github.com/erroneousboat/slack-term/service"
)
// Channels is the definition of a Channels component

View File

@ -5,7 +5,7 @@ import (
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/service"
"github.com/erroneousboat/slack-term/service"
)
// Chat is the definition of a Chat component

View File

@ -3,7 +3,7 @@ package components
import (
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/service"
"github.com/erroneousboat/slack-term/service"
)
// Input is the definition of an Input component

View File

@ -5,9 +5,9 @@ import (
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/config"
"github.com/erroneousboat/slack-term/src/service"
"github.com/erroneousboat/slack-term/src/views"
"github.com/erroneousboat/slack-term/config"
"github.com/erroneousboat/slack-term/service"
"github.com/erroneousboat/slack-term/views"
)
const (

View File

@ -5,8 +5,8 @@ import (
"github.com/nlopes/slack"
termbox "github.com/nsf/termbox-go"
"github.com/erroneousboat/slack-term/src/context"
"github.com/erroneousboat/slack-term/src/views"
"github.com/erroneousboat/slack-term/context"
"github.com/erroneousboat/slack-term/views"
)
func RegisterEventHandlers(ctx *context.AppContext) {

View File

@ -7,8 +7,8 @@ import (
"os/user"
"path"
"github.com/erroneousboat/slack-term/src/context"
"github.com/erroneousboat/slack-term/src/handlers"
"github.com/erroneousboat/slack-term/context"
"github.com/erroneousboat/slack-term/handlers"
"github.com/gizak/termui"
)

View File

@ -3,8 +3,8 @@ package views
import (
"github.com/gizak/termui"
"github.com/erroneousboat/slack-term/src/components"
"github.com/erroneousboat/slack-term/src/service"
"github.com/erroneousboat/slack-term/components"
"github.com/erroneousboat/slack-term/service"
)
type View struct {