From c5b64344680c0c72a08a076b3b83291148c797d0 Mon Sep 17 00:00:00 2001 From: "Forster, Aaron" Date: Fri, 24 Nov 2017 10:56:18 -0800 Subject: [PATCH] Removed the default "blah completed" messages. Added a space to separate native from third party imports and sorted them. --- do-restore.go | 5 +++-- main.go | 8 ++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/do-restore.go b/do-restore.go index 4111f76..b26a470 100644 --- a/do-restore.go +++ b/do-restore.go @@ -19,12 +19,13 @@ package main import ( + "encoding/json" "fmt" "io/ioutil" "os" - "strings" "regexp" - "encoding/json" + "strings" + "github.com/grafana-tools/sdk" ) diff --git a/main.go b/main.go index 857f9f5..3915232 100644 --- a/main.go +++ b/main.go @@ -96,27 +96,23 @@ func main() { case "backup": // TODO fix logic accordingly with apply-for doBackup(serverInstance, applyFor, matchDashboard) - fmt.Println("Backup Complete.") case "restore": // TODO fix logic accordingly with apply-for doRestore(serverInstance, applyFor, matchFilename) - fmt.Println("Restore Complete.") case "ls": // TODO fix logic accordingly with apply-for doObjectList(serverInstance, applyFor, matchDashboard) - fmt.Println("ls Complete.") case "ls-files": // TODO merge this command with ls doFileList(matchFilename, applyFor, matchDashboard) - fmt.Println("ls-files Complete.") case "config-set": // TBD // doConfigSet() - fmt.Println("Command config-set not yet implemented.") + fmt.Fprintln(os.Stderr, "Command config-set not yet implemented!") case "config-get": // TBD // doConfigGet() - fmt.Println("Command config-get not yet implemented.") + fmt.Fprintln(os.Stderr, "Command config-get not yet implemented!") default: fmt.Fprintf(os.Stderr, fmt.Sprintf("unknown command: %s\n\n", args[0])) printUsage()