Skip to content

Commit 773dbf6

Browse files
committed
import sort and comments
1 parent 44fcc2e commit 773dbf6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/sheets-refresh/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ import (
77
"log"
88
"os"
99

10-
"google.golang.org/api/sheets/v4"
11-
1210
"github.com/rusq/xls2sheets"
1311

1412
"golang.org/x/oauth2"
1513
"golang.org/x/oauth2/google"
1614
"google.golang.org/api/drive/v3"
15+
"google.golang.org/api/sheets/v4"
1716
)
1817

1918
var defaultCredentialsFile = os.ExpandEnv("${HOME}/.refresh-credentials.json")
@@ -60,13 +59,16 @@ func main() {
6059
}
6160
}
6261

62+
// initialising client
6363
client := getClient(config)
6464

65+
// running job
6566
if err := job.Execute(client); err != nil {
6667
log.Fatal(err)
6768
}
6869
}
6970

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

0 commit comments

Comments
 (0)