Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google sheets: adding a row or inserting a cell in the command line #7

Open
alberto56 opened this issue Nov 25, 2024 · 1 comment
Open

Comments

@alberto56
Copy link
Contributor

No description provided.

@alberto56
Copy link
Contributor Author

In https://github.com/alberto56/dcycle-suresh-kumara/issues/76 the PR dcycle/starterkit-node#59 which allows node starterkit to add rows and insert cells in google sheets.

Please provide the same functionality in the command line for https://github.com/dcycle/google-sheets-to-csv

Something like this:

GOOGLE_SHEETS_API_KEY={api_key}
GOOGLE_SHEETS_SPREADSHEET_ID={spread_sheet_id}
GOOGLE_SHEETS_SHEET_ID={sheet1}

./scripts/modify-cell-value.sh "$GOOGLE_SHEETS_API_KEY" "$GOOGLE_SHEETS_SPREADSHEET_ID" "$GOOGLE_SHEETS_SHEET_ID" B2 "new value"
./scripts/insert-rows-after-row.sh "$GOOGLE_SHEETS_API_KEY" "$GOOGLE_SHEETS_SPREADSHEET_ID" "$GOOGLE_SHEETS_SHEET_ID" 40 10 #insert 10 blank rows after row 40

The idea is to do it within Python, not Node, and in the command line from within a Jenkins job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant