File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
1918var 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
7072func prepareConfig (credentialsFile string ) (* oauth2.Config , error ) {
7173 fileInfo , err := os .Stat (credentialsFile )
7274 if err != nil {
You can’t perform that action at this time.
0 commit comments