~schnouki/islas

ddd197b9599641eafa5ae7b500847d9512e39242 — Thomas Jost 6 years ago 697dedf
Bye bye Glide, hello modules!

Requires Go 1.11…
7 files changed, 70 insertions(+), 108 deletions(-)

M .gitignore
D Makefile
M README.md
D glide.lock
D glide.yaml
A go.mod
A go.sum
M .gitignore => .gitignore +0 -2
@@ 1,3 1,1 @@
/.gopath
/islas
/vendor

D Makefile => Makefile +0 -26
@@ 1,26 0,0 @@
PACKAGE = islas
GOPATH  = $(CURDIR)/.gopath
BASE    = $(GOPATH)/src/$(PACKAGE)

PREFIX ?= $(HOME)

.PHONY: all clean install
all: islas

clean:
	rm -f islas

islas: $(BASE) vendor/.ok $(shell find -name '*.go')
	cd $(BASE) && CGO_ENABLED=1 go build .

$(BASE):
	@mkdir -p $(dir $@)
	@ln -sf $(CURDIR) $@

vendor: $(BASE) vendor/.ok
vendor/.ok:
	glide install
	@touch vendor/.ok

install: islas
	install -Dm755 islas $(PREFIX)/bin/islas

M README.md => README.md +3 -3
@@ 7,10 7,10 @@ very quickly. It uses the same APIs as the Android application.

## Installation

- Install [Go](https://golang.org/), [Glide](https://glide.sh/),
  [git](https://git-scm.org/) and [make](https://www.gnu.org/software/make/)
- Install [Go](https://golang.org/) (version 1.11 or newer) and
  [git](https://git-scm.org/)
- Clone the repository: `git clone https://code.schnouki.net/schnouki/islas.git && cd islas`
- Build it: `make`
- Build it: `go build`


## Usage

D glide.lock => glide.lock +0 -57
@@ 1,57 0,0 @@
hash: 898f9f6675e4e8f73bbd0352291095f89eb1c795805aa84529440abdac0a7b91
updated: 2018-06-26T15:25:59.773720707+02:00
imports:
- name: github.com/casimir/xdg-go
  version: 372ccc2180dab73316615641d5617c5ed3e35529
- name: github.com/daviddengcn/go-colortext
  version: 186a3d44e9200d7eb331356ca4864f52708e1399
- name: github.com/denisbrodbeck/machineid
  version: 2777226d0340d8da18b49993ce2b4aeb9c1c6929
- name: github.com/DHowett/go-plist
  version: 500bd5b9081b5957ac10389f86e069869f00c348
- name: github.com/facebookgo/errgroup
  version: 779c8d7ef069c522bc72ee5f31a98d89a37f3fb6
- name: github.com/fatih/color
  version: 5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4
- name: github.com/inconshreveable/mousetrap
  version: 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
- name: github.com/jmoiron/sqlx
  version: 0dae4fefe7c0e190f7b5a78dac28a1c82cc8d849
  subpackages:
  - reflectx
- name: github.com/mattn/go-colorable
  version: efa589957cd060542a26d2dd7832fd6a6c6c3ade
- name: github.com/mattn/go-isatty
  version: 6ca4dbf54d38eea1a992b3c722a76a5d1c4cb25c
- name: github.com/mattn/go-sqlite3
  version: 25ecb14adfc7543176f7d85291ec7dba82c6f7e4
- name: github.com/mattn/go-tty
  version: 931426f7535ac39720c8909d70ece5a41a2502a6
- name: github.com/sirupsen/logrus
  version: c155da19408a8799da419ed3eeb0cb5db0ad5dbc
- name: github.com/spf13/cobra
  version: 1e58aa3361fd650121dceeedc399e7189c05674a
- name: github.com/spf13/pflag
  version: 3ebe029320b2676d667ae88da602a5f854788a8a
- name: golang.org/x/crypto
  version: 7f39a6fea4fe9364fb61e1def6a268a51b4f3a06
  subpackages:
  - ssh/terminal
- name: golang.org/x/sys
  version: ad87a3a340fa7f3bed189293fbfa7a9b7e021ae1
  subpackages:
  - unix
  - windows
  - windows/registry
- name: gopkg.in/dixonwille/wlog.v2
  version: 76a8811f69dff5d130c6b5f0342451b0beb52f37
- name: gopkg.in/dixonwille/wmenu.v4
  version: 8ae99891e0b971e497e4a591cf53974f0906a949
- name: gopkg.in/yaml.v2
  version: 5420a8b6744d3b0345ab293f6fcba19c978f1183
testImports:
- name: github.com/kylelemons/godebug
  version: d65d576e9348f5982d7f6d83682b694e731a45c6
  subpackages:
  - diff
  - pretty

D glide.yaml => glide.yaml +0 -20
@@ 1,20 0,0 @@
package: .
import:
- package: github.com/spf13/cobra
- package: github.com/casimir/xdg-go
- package: github.com/sirupsen/logrus
  version: ^1.0.5
- package: github.com/DHowett/go-plist
- package: github.com/mattn/go-sqlite3
  version: ^1.9.0
- package: github.com/jmoiron/sqlx
- package: gopkg.in/dixonwille/wmenu.v4
  version: ^4.0.2
- package: gopkg.in/yaml.v2
  version: ^2.2.1
- package: github.com/facebookgo/errgroup
- package: github.com/denisbrodbeck/machineid
  version: ^0.8.0
- package: github.com/fatih/color
  version: ^1.7.0
- package: github.com/mattn/go-tty

A go.mod => go.mod +25 -0
@@ 0,0 1,25 @@
module islas

require (
	github.com/DHowett/go-plist v0.0.0-20180609054337-500bd5b9081b
	github.com/casimir/xdg-go v0.0.0-20160329195404-372ccc2180da
	github.com/daviddengcn/go-colortext v0.0.0-20180409174941-186a3d44e920
	github.com/denisbrodbeck/machineid v0.8.0
	github.com/facebookgo/errgroup v0.0.0-20160209021148-779c8d7ef069
	github.com/fatih/color v1.7.0
	github.com/inconshreveable/mousetrap v1.0.0
	github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0
	github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348
	github.com/mattn/go-colorable v0.0.0-20180310133214-efa589957cd0
	github.com/mattn/go-isatty v0.0.4
	github.com/mattn/go-sqlite3 v1.9.0
	github.com/mattn/go-tty v0.0.0-20180219170247-931426f7535a
	github.com/sirupsen/logrus v1.0.5
	github.com/spf13/cobra v0.0.0-20180531180338-1e58aa3361fd
	github.com/spf13/pflag v0.0.0-20180601132542-3ebe029320b2
	golang.org/x/crypto v0.0.0-20180619200235-7f39a6fea4fe
	golang.org/x/sys v0.0.0-20180620133508-ad87a3a340fa
	gopkg.in/dixonwille/wlog.v2 v2.0.0
	gopkg.in/dixonwille/wmenu.v4 v4.0.2
	gopkg.in/yaml.v2 v2.2.1
)

A go.sum => go.sum +42 -0
@@ 0,0 1,42 @@
github.com/DHowett/go-plist v0.0.0-20180609054337-500bd5b9081b h1:WFNhl1+1ofCWWdNFEhut77cmuMXjJYYvkEVloDdaUCI=
github.com/DHowett/go-plist v0.0.0-20180609054337-500bd5b9081b/go.mod h1:5paT5ZDrOm8eAJPem2Bd+q3FTi3Gxm/U4tb2tH8YIUQ=
github.com/casimir/xdg-go v0.0.0-20160329195404-372ccc2180da h1:hjpZV7G49m1bly++F+Gho1Sbf2+eBW/eTLJWuRkH9Uc=
github.com/casimir/xdg-go v0.0.0-20160329195404-372ccc2180da/go.mod h1:dywSSi3sMtJn2IjiYfJciP9tjVVeIVRa7AE7N5WLUBo=
github.com/daviddengcn/go-colortext v0.0.0-20180409174941-186a3d44e920 h1:d/cVoZOrJPJHKH1NdeUjyVAWKp4OpOT+Q+6T1sH7jeU=
github.com/daviddengcn/go-colortext v0.0.0-20180409174941-186a3d44e920/go.mod h1:dv4zxwHi5C/8AeI+4gX4dCWOIvNi7I6JCSX0HvlKPgE=
github.com/denisbrodbeck/machineid v0.8.0 h1:RLNt/ZG4IHF3Q0JS5oDITRmiEYgddmEkTO5dOa06d0U=
github.com/denisbrodbeck/machineid v0.8.0/go.mod h1:dJUwb7PTidGDeYyUBmXZ2GphQBbjJCrnectwCyxcUSI=
github.com/facebookgo/errgroup v0.0.0-20160209021148-779c8d7ef069 h1:IdOVrga1ENNu/2+Gt9mNqJ8E8Ed4DhOi514NIqKD2q0=
github.com/facebookgo/errgroup v0.0.0-20160209021148-779c8d7ef069/go.mod h1:jelyCGQBApd6AYnPVnvk+ZG9by4cjNIOD/gmTviVbLA=
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0 h1:5B0uxl2lzNRVkJVg+uGHxWtRt4C0Wjc6kJKo5XYx8xE=
github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0/go.mod h1:IiEW3SEiiErVyFdH8NTuWjSifiEQKUoyK3LNqr2kCHU=
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4=
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
github.com/mattn/go-colorable v0.0.0-20180310133214-efa589957cd0 h1:cDvUG90i1ssGJGqMNx2Ubbn+bx7VOzjdvQ45zpy0X4w=
github.com/mattn/go-colorable v0.0.0-20180310133214-efa589957cd0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mattn/go-sqlite3 v1.9.0 h1:pDRiWfl+++eC2FEFRy6jXmQlvp4Yh3z1MJKg4UeYM/4=
github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-tty v0.0.0-20180219170247-931426f7535a h1:8TGB3DFRNl06DB1Q6zBX+I7FDoCUZY2fmMS9WGUIIpw=
github.com/mattn/go-tty v0.0.0-20180219170247-931426f7535a/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE=
github.com/sirupsen/logrus v1.0.5 h1:8c8b5uO0zS4X6RPl/sd1ENwSkIc0/H2PaHxE3udaE8I=
github.com/sirupsen/logrus v1.0.5/go.mod h1:pMByvHTf9Beacp5x1UXfOR9xyW/9antXMhjMPG0dEzc=
github.com/spf13/cobra v0.0.0-20180531180338-1e58aa3361fd h1:81M+Gt4SwR+KFuvy7qiAQhiVY8qPFxwn50AsV3yRGdk=
github.com/spf13/cobra v0.0.0-20180531180338-1e58aa3361fd/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/pflag v0.0.0-20180601132542-3ebe029320b2 h1:OAuq3yHhRwcm/kwCSAqf07pUm/EcLZYNz1ket+Bm0SI=
github.com/spf13/pflag v0.0.0-20180601132542-3ebe029320b2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
golang.org/x/crypto v0.0.0-20180619200235-7f39a6fea4fe h1:SfgKf9nOqRADFtqYKr+2JhFTS7L7i1BRrU9ndm2Xjsc=
golang.org/x/crypto v0.0.0-20180619200235-7f39a6fea4fe/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/sys v0.0.0-20180620133508-ad87a3a340fa h1:MUO6aP6ViFfqImh/3zU3O6QX3W2hFRzkkuCIQuUCOsM=
golang.org/x/sys v0.0.0-20180620133508-ad87a3a340fa/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/dixonwille/wlog.v2 v2.0.0 h1:TbGWtD8ahWVSihKKr+z2Dw7Cv/7IrfN6dwrcrre17pU=
gopkg.in/dixonwille/wlog.v2 v2.0.0/go.mod h1:JYQHRnhGPLno/iATOiGkEXoRanJXqdz9Qo6/QwfARUc=
gopkg.in/dixonwille/wmenu.v4 v4.0.2 h1:QZVHQatLr41TOvVWiNGdwGk2DYtGEljtuxyrEdR0JIQ=
gopkg.in/dixonwille/wmenu.v4 v4.0.2/go.mod h1:qgH60HxGljYu/uXZW8ctlQ8nIf5mhmraJ3Vsksexnqk=
gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=