Skip to content

Commit

Permalink
Fix coderabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed Apr 29, 2024
1 parent d3aa3d2 commit 3e75a79
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The command beginning with a dot is the sqly helper command; I plan to add more
$ sqly
sqly v0.5.0 (work in progress)
enter "SQL query" or "sqly command that beginning with a dot".
enter "SQL query" or "sqly command that begins with a dot".
.help print usage, .exit exit sqly.
sqly> .help
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/persistence/excel.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *excelRepository) Dump(excelFilePath string, table *model.Table) (err er
}

for i, record := range table.Records {
if err := f.SetSheetRow(table.Name, fmt.Sprintf("A%d", i+2), &record); err != nil {
if err := f.SetSheetRow(table.Name, fmt.Sprintf("A%d", i+2), &record); err != nil { ////nolint:gosec // false positive
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion shell/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (c CommandList) importCommand(s *Shell, argv []string) error {
fmt.Fprintln(config.Stdout, "")
fmt.Fprintln(config.Stdout, " - Supported file format: csv, tsv, ltsv, json, xlam, xlsm, xlsx, xltm, xltx")
fmt.Fprintln(config.Stdout, " - If import multiple files, separate them with spaces")
fmt.Fprintln(config.Stdout, " - Not support import multiple excel sheets at once")
fmt.Fprintln(config.Stdout, " - Does not support importing multiple excel sheets at once")
fmt.Fprintln(config.Stdout, " - If import an Excel file, specify the sheet name with --sheet")

return nil
Expand Down
2 changes: 1 addition & 1 deletion shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (s *Shell) init() error {
func (s *Shell) printWelcomeMessage() {
fmt.Fprintf(config.Stdout, "%s %s\n", color.GreenString("sqly"), config.GetVersion())
fmt.Fprintln(config.Stdout, "")
fmt.Fprintln(config.Stdout, "enter \"SQL query\" or \"sqly command that beginning with a dot\".")
fmt.Fprintln(config.Stdout, "enter \"SQL query\" or \"sqly command that begins with a dot\".")
fmt.Fprintf(config.Stdout, "%s print usage, %s exit sqly.\n", color.CyanString(".help"), color.CyanString(".exit"))
fmt.Fprintln(config.Stdout, "")
}
Expand Down
2 changes: 1 addition & 1 deletion shell/testdata/golden/import_without_arg.golden
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

- Supported file format: csv, tsv, ltsv, json, xlam, xlsm, xlsx, xltm, xltx
- If import multiple files, separate them with spaces
- Not support import multiple excel sheets at once
- Does not support importing multiple excel sheets at once
- If import an Excel file, specify the sheet name with --sheet
2 changes: 1 addition & 1 deletion shell/testdata/golden/welcome.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sqly

enter "SQL query" or "sqly command that beginning with a dot".
enter "SQL query" or "sqly command that begins with a dot".
.help print usage, .exit exit sqly.

0 comments on commit 3e75a79

Please sign in to comment.