You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sheets): add --safe-formula and --verify flags to update command
--safe-formula reads a formula from a file, avoiding shell ! expansion
on cross-tab references (e.g. =IMPORTRANGE!). Forces USER_ENTERED mode.
--verify reads the updated range back after write and warns on any
spreadsheet error token: #ERROR!, #REF!, #NAME?, #VALUE!, #DIV/0!,
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Copy file name to clipboardExpand all lines: internal/cmd/sheets.go
+32-1Lines changed: 32 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ import (
4
4
"context"
5
5
"fmt"
6
6
"io"
7
+
"os"
7
8
"strings"
8
9
9
10
"google.golang.org/api/drive/v3"
@@ -176,6 +177,8 @@ type SheetsUpdateCmd struct {
176
177
ValueInputstring`name:"input" help:"Value input option: RAW or USER_ENTERED" default:"USER_ENTERED"`
177
178
ValuesJSONstring`name:"values-json" help:"Values as JSON 2D array"`
178
179
CopyValidationFromstring`name:"copy-validation-from" help:"Copy data validation from an A1 range or named range (e.g. 'Sheet1!A2:D2' or MyNamedRange) to the updated cells"`
180
+
SafeFormulastring`name:"safe-formula" help:"Path to file containing a formula; avoids shell ! expansion and forces USER_ENTERED mode"`
181
+
Verifybool`name:"verify" help:"After write, read the cell back and warn if it contains a spreadsheet error (e.g. #ERROR!, #REF!, #NAME?)"`
0 commit comments