Skip to content

Commit

Permalink
import sort and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed May 26, 2019
1 parent 44fcc2e commit 773dbf6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/sheets-refresh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ import (
"log"
"os"

"google.golang.org/api/sheets/v4"

"github.com/rusq/xls2sheets"

"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"google.golang.org/api/drive/v3"
"google.golang.org/api/sheets/v4"
)

var defaultCredentialsFile = os.ExpandEnv("${HOME}/.refresh-credentials.json")
Expand Down Expand Up @@ -60,13 +59,16 @@ func main() {
}
}

// initialising client
client := getClient(config)

// running job
if err := job.Execute(client); err != nil {
log.Fatal(err)
}
}

// prepareConfig loads configuration from disk and prepares oauth2.Config
func prepareConfig(credentialsFile string) (*oauth2.Config, error) {
fileInfo, err := os.Stat(credentialsFile)
if err != nil {
Expand Down

0 comments on commit 773dbf6

Please sign in to comment.