Skip to content

Commit

Permalink
Removed the default "blah completed" messages. Added a space to separ…
Browse files Browse the repository at this point in the history
…ate native from third party imports and sorted them.
  • Loading branch information
omadawn committed Nov 24, 2017
1 parent 481f032 commit c5b6434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 3 additions & 2 deletions do-restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
package main

import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"strings"
"regexp"
"encoding/json"
"strings"

"github.com/grafana-tools/sdk"
)

Expand Down
8 changes: 2 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c5b6434

Please sign in to comment.