From b07cc32250d19a699a61655f38b33a1f9c823e46 Mon Sep 17 00:00:00 2001 From: Xiaozhe Yao Date: Sun, 14 Oct 2018 21:04:43 +0800 Subject: [PATCH] add init raven function --- .gitignore | 3 +-- cli/main.go | 1 - cli/raven.go | 10 ++++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 cli/raven.go diff --git a/.gitignore b/.gitignore index d542c37c6..93b5e29ca 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,4 @@ build dist .env .idea -.DS_Store -*.go \ No newline at end of file +.DS_Store \ No newline at end of file diff --git a/cli/main.go b/cli/main.go index 18d1bef62..53f99a645 100644 --- a/cli/main.go +++ b/cli/main.go @@ -8,7 +8,6 @@ import ( ) func main() { - initRaven() validateConfig() // sessionToken := getCache("session-token") var currentUser User diff --git a/cli/raven.go b/cli/raven.go new file mode 100644 index 000000000..7cdf642ef --- /dev/null +++ b/cli/raven.go @@ -0,0 +1,10 @@ +package main + +import ( + "log" + "github.com/getsentry/raven-go" +) + +func initRaven() { + log.Fatal("Please init it in environment variables") +} \ No newline at end of file