Update project structure
This commit is contained in:
parent
453dc8dfd7
commit
d2fb5c06d9
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
src/vendor/*
|
||||
bin/
|
||||
vendor/*
|
||||
!vendor.json
|
||||
|
10
Makefile
10
Makefile
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
BIN
bin/slack-term
BIN
bin/slack-term
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
@ -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
|
@ -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
|
@ -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 (
|
@ -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) {
|
@ -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"
|
||||
)
|
@ -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 {
|
Loading…
Reference in New Issue
Block a user