Skip to content

Commit

Permalink
ran goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstruck authored and buchanae committed Jan 30, 2018
1 parent 84c117f commit 7af0be3
Show file tree
Hide file tree
Showing 146 changed files with 378 additions and 232 deletions.
9 changes: 5 additions & 4 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import (
"bytes"
"errors"
"fmt"
"github.com/golang/protobuf/jsonpb"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"github.com/ohsu-comp-bio/funnel/util"
"golang.org/x/net/context"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"time"

"github.com/golang/protobuf/jsonpb"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"github.com/ohsu-comp-bio/funnel/util"
"golang.org/x/net/context"
)

// NewClient returns a new HTTP client for accessing
Expand Down
5 changes: 3 additions & 2 deletions client/client_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package client

import (
"github.com/ohsu-comp-bio/funnel/proto/tes"
"golang.org/x/net/context"
"net"
"net/http"
"net/http/httptest"
"testing"
"time"

"github.com/ohsu-comp-bio/funnel/proto/tes"
"golang.org/x/net/context"
)

func testServer(mux http.Handler) *httptest.Server {
Expand Down
5 changes: 3 additions & 2 deletions cmd/aws/batch/batchsvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package batch
import (
"encoding/json"
"fmt"
"sort"
"strings"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/batch"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/aws/aws-sdk-go/service/iam"
util "github.com/ohsu-comp-bio/funnel/util/aws"
"sort"
"strings"
)

type errResourceExists struct{}
Expand Down
3 changes: 2 additions & 1 deletion cmd/aws/batch/config.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package batch

import (
"github.com/ohsu-comp-bio/funnel/config"
"time"

"github.com/ohsu-comp-bio/funnel/config"
)

// Config represents configuration of the AWS proxy, including
Expand Down
1 change: 1 addition & 0 deletions cmd/aws/batch/createall.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package batch

import (
"fmt"

"github.com/ohsu-comp-bio/funnel/cmd/util"
"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/logger"
Expand Down
1 change: 1 addition & 0 deletions cmd/aws/batch/createjobdef.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package batch

import (
"fmt"

"github.com/ohsu-comp-bio/funnel/cmd/util"
"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/logger"
Expand Down
5 changes: 3 additions & 2 deletions cmd/examples/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package examples

import (
"fmt"
"path/filepath"
"strings"

"github.com/ohsu-comp-bio/funnel/config"
ex "github.com/ohsu-comp-bio/funnel/examples"
"github.com/spf13/cobra"
"path/filepath"
"strings"
)

// Cmd represents the examples command
Expand Down
5 changes: 3 additions & 2 deletions cmd/gce/gce.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ package gce
import (
"context"
"fmt"
"syscall"
"time"

"github.com/ohsu-comp-bio/funnel/cmd/node"
"github.com/ohsu-comp-bio/funnel/cmd/server"
"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/config/gce"
"github.com/ohsu-comp-bio/funnel/logger"
"github.com/ohsu-comp-bio/funnel/util"
"github.com/spf13/cobra"
"syscall"
"time"
)

// Cmd represents the 'funnel gce" CLI command set.
Expand Down
3 changes: 2 additions & 1 deletion cmd/gendocs.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"os"

"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
"os"
)

var genMarkdownCmd = &cobra.Command{
Expand Down
1 change: 1 addition & 0 deletions cmd/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package node
import (
"context"
"fmt"

cmdutil "github.com/ohsu-comp-bio/funnel/cmd/util"
"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/logger"
Expand Down
5 changes: 3 additions & 2 deletions cmd/node/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package node

import (
"context"
"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/logger"
"os"
"path"
"testing"

"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/logger"
)

func TestPersistentPreRun(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions cmd/node/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package node

import (
"context"
"syscall"
"time"

workerCmd "github.com/ohsu-comp-bio/funnel/cmd/worker"
"github.com/ohsu-comp-bio/funnel/compute/scheduler"
"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/logger"
"github.com/ohsu-comp-bio/funnel/util"
"syscall"
"time"
)

// Run runs a node with the given config, blocking until the node exits.
Expand Down
3 changes: 2 additions & 1 deletion cmd/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package run

import (
"bufio"
"os"

"github.com/kballard/go-shellquote"
"github.com/ohsu-comp-bio/funnel/client"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"github.com/spf13/cobra"
"os"
)

// *********************************************************************
Expand Down
5 changes: 3 additions & 2 deletions cmd/run/cmd_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package run

import (
"github.com/go-test/deep"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"os"
"testing"

"github.com/go-test/deep"
"github.com/ohsu-comp-bio/funnel/proto/tes"
)

func TestParse(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions cmd/run/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package run

import (
"fmt"
"io/ioutil"
"os"

"github.com/kballard/go-shellquote"
"github.com/ohsu-comp-bio/funnel/cmd/util"
"github.com/spf13/pflag"
"io/ioutil"
"os"
)

// *********************************************************************
Expand Down
5 changes: 3 additions & 2 deletions cmd/run/parse_vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package run
import (
"errors"
"fmt"
"github.com/kballard/go-shellquote"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"io/ioutil"
"path/filepath"
"regexp"
"strings"

"github.com/kballard/go-shellquote"
"github.com/ohsu-comp-bio/funnel/proto/tes"
)

// ErrKeyFmt describes an error in input/output/env/tag flag formatting
Expand Down
3 changes: 2 additions & 1 deletion cmd/run/task_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package run

import (
"fmt"
"sync"

"github.com/ohsu-comp-bio/funnel/client"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"golang.org/x/net/context"
"sync"
)

type taskGroup struct {
Expand Down
3 changes: 2 additions & 1 deletion cmd/server/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package server
import (
"context"
"fmt"
"strings"

"github.com/ohsu-comp-bio/funnel/compute/batch"
"github.com/ohsu-comp-bio/funnel/compute/gridengine"
"github.com/ohsu-comp-bio/funnel/compute/htcondor"
Expand All @@ -22,7 +24,6 @@ import (
"github.com/ohsu-comp-bio/funnel/server/dynamodb"
"github.com/ohsu-comp-bio/funnel/server/elastic"
"github.com/ohsu-comp-bio/funnel/server/mongodb"
"strings"
)

// Run runs the "server run" command.
Expand Down
5 changes: 3 additions & 2 deletions cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package server
import (
"context"
"fmt"
"syscall"
"time"

cmdutil "github.com/ohsu-comp-bio/funnel/cmd/util"
"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/logger"
"github.com/ohsu-comp-bio/funnel/util"
"github.com/spf13/cobra"
"syscall"
"time"
)

// NewCommand returns the node command
Expand Down
3 changes: 2 additions & 1 deletion cmd/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package server

import (
"context"
"testing"

"github.com/ohsu-comp-bio/funnel/config"
"github.com/ohsu-comp-bio/funnel/logger"
"testing"
)

func TestPersistentPreRun(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion cmd/task/cancel.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package task

import (
"fmt"
"io"

"github.com/ohsu-comp-bio/funnel/client"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"golang.org/x/net/context"
"io"
)

// Cancel runs the "task cancel" CLI command, which connects to the server,
Expand Down
5 changes: 3 additions & 2 deletions cmd/task/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package task

import (
"fmt"
"io"
"os"

"github.com/golang/protobuf/jsonpb"
"github.com/ohsu-comp-bio/funnel/client"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"golang.org/x/net/context"
"io"
"os"
)

// Create runs the "task create" CLI command, connecting to the server,
Expand Down
3 changes: 2 additions & 1 deletion cmd/task/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package task

import (
"fmt"
"io"

"github.com/ohsu-comp-bio/funnel/client"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"golang.org/x/net/context"
"io"
)

// Get runs the "task get" CLI command, which connects to the server,
Expand Down
3 changes: 2 additions & 1 deletion cmd/task/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package task

import (
"fmt"
"io"

"github.com/ohsu-comp-bio/funnel/client"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"golang.org/x/net/context"
"io"
)

// List runs the "task list" CLI command, which connects to the server,
Expand Down
7 changes: 4 additions & 3 deletions cmd/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package task

import (
"fmt"
"github.com/ohsu-comp-bio/funnel/cmd/util"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"github.com/spf13/cobra"
"io"
"os"
"strings"

"github.com/ohsu-comp-bio/funnel/cmd/util"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"github.com/spf13/cobra"
)

// NewCommand returns the "task" subcommands.
Expand Down
3 changes: 2 additions & 1 deletion cmd/termdash/cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ package termdash

import (
"fmt"
ui "github.com/gizak/termui"
"math"

ui "github.com/gizak/termui"
)

type GridCursor struct {
Expand Down
3 changes: 2 additions & 1 deletion cmd/termdash/expanded/taskinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package expanded

import (
"fmt"
"strings"

ui "github.com/gizak/termui"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"strings"
)

var displayInfo = []string{"id", "state", "name", "description", "tags"}
Expand Down
3 changes: 2 additions & 1 deletion cmd/termdash/expanded/taskjson.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package expanded

import (
"strings"

ui "github.com/gizak/termui"
"github.com/ohsu-comp-bio/funnel/proto/tes"
"strings"
)

type JSON struct {
Expand Down
Loading

0 comments on commit 7af0be3

Please sign in to comment.