From bb3257c1b9d67798abde21cace2233e147cc6414 Mon Sep 17 00:00:00 2001
From: Kevin Lyda <kevin@ie.suberic.net>
Date: Mon, 23 Jan 2017 14:31:32 +0000
Subject: [PATCH] Add pjls.

---
 .gitignore       |  2 ++
 cmd/pjls/pjls.go | 28 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 cmd/pjls/pjls.go

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..59a8594
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/pjls
+/config
diff --git a/cmd/pjls/pjls.go b/cmd/pjls/pjls.go
new file mode 100644
index 0000000..42fef67
--- /dev/null
+++ b/cmd/pjls/pjls.go
@@ -0,0 +1,28 @@
+package main
+
+import (
+	"fmt"
+	"github.com/spf13/viper"
+	gl "github.com/xanzy/go-gitlab"
+)
+
+type Config struct {
+	token   string
+	baseurl string
+}
+
+func main() {
+	var c Config
+
+	viper.SetConfigName("config")
+	viper.AddConfigPath(".")
+	err := viper.ReadInConfig()
+	viper.Unmarshal(&c)
+
+	if err != nil {
+		panic(fmt.Errorf("Fatal error config file: %s \n", err))
+	}
+	client := gl.NewClient(nil, c.token)
+	client.SetBaseURL(c.baseurl)
+	fmt.Println("vim-go")
+}
-- 
GitLab