Skip to content

Commit

Permalink
use envvars for google sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
bbkane committed Dec 15, 2021
1 parent 8cdaf04 commit cafa141
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ GOOGLE_APPLICATION_CREDENTIALS=/path/to/keys.json starghaze gsheets upload \

## TODO

- change `--date-format` to use strftime conventions.
- `readmes` command to download READMEs for starred repos,
- zinc command to push to [zinc](https://github.com/prabhatsharma/zinc) and see if I like zinc
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,15 @@ func main() {
"ID For the particulare sheet. Viewable from `gid` URL param",
value.Int,
flag.Default("0"),
flag.EnvVars("STARGHAZE_SHEET_ID"),
flag.Required(),
),
section.Flag(
"--spreadsheet-id",
"ID for the whole spreadsheet. Viewable from URL",
value.String,
flag.Default("15AXUtql31P62zxvEnqxNnb8ZcCWnBUYpROAsrtAhOV0"),
flag.EnvVars("STARGHAZE_SPREADSHEET_ID"),
flag.Required(),
),
)
Expand Down

0 comments on commit cafa141

Please sign in to comment.