Skip to content

Commit

Permalink
Fix typos (#184)
Browse files Browse the repository at this point in the history
Found via `typos --format brief`
  • Loading branch information
kianmeng authored Aug 7, 2023
1 parent bf78413 commit 234d73c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ make up

Then, you'll have 2 containers up and running in your system for every kind of database supported by dblab.

Run dblab openning a connection with the postgres container.
Run dblab opening a connection with the postgres container.

```bash
make run
```

You can do the same with the mysql container by runnning:
You can do the same with the mysql container by running:

```bash
make run-mysql
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ $ dblab --url postgres://user:password@host:port/database?sslmode=[mode] --schem
As a request made in [#125](https://github.com/danvergara/dblab/issues/125), support for MySQL/MariaDB sockets was integrated.

```sh
$ dblab --url "mysql://user:pasword@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
$ dblab --url "mysql://user:password@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
$ dblab --socket /path/to/socket/mysql.sock --user user --db dbname --pass password --ssl disable --port 5432 --driver mysql --limit 50
```

Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dblab --url postgres://user:password@host:port/database?sslmode=[mode] --schema
As a request made in [#125](https://github.com/danvergara/dblab/issues/125), support for MySQL/MariaDB sockets was integrated.

```{ .sh .copy }
dblab --url "mysql://user:pasword@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
dblab --url "mysql://user:password@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
```
```{ .sh .copy }
dblab --socket /path/to/socket/mysql.sock --user user --db dbname --pass password --ssl disable --port 5432 --driver mysql --limit 50
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ dblab --url postgres://user:password@host:port/database?sslmode=[mode] --schema
As a request made in [#125](https://github.com/danvergara/dblab/issues/125), support for MySQL/MariaDB sockets was integrated.

```{ .sh .copy }
dblab --url "mysql://user:pasword@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
dblab --url "mysql://user:password@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
```
```{ .sh .copy }
dblab --socket /path/to/socket/mysql.sock --user user --db dbname --pass password --ssl disable --port 5432 --driver mysql --limit 50
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ type Metadata struct {
TotalPages int
}

// Metadata retunrs the most relevant data from a given table.
// Metadata returns the most relevant data from a given table.
func (c *Client) Metadata(tableName string) (*Metadata, error) {
count, err := c.tableCount(tableName)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (c *Config) GetSQLXDBConnStr() string {
return c.getSQLXConnStr(c.Host, c.DBName)
}

// getDBConnStr returns the connection string based on the provied host and db name.
// getDBConnStr returns the connection string based on the provided host and db name.
func (c *Config) getDBConnStr(dbhost, dbname string) string {
switch c.Driver {
case drivers.Postgres:
Expand Down Expand Up @@ -216,7 +216,7 @@ func (c *Config) getDBConnStr(dbhost, dbname string) string {
}
}

// getSQLXConnStr returns the connection string based on the provied host and db name.
// getSQLXConnStr returns the connection string based on the provided host and db name.
func (c *Config) getSQLXConnStr(dbhost, dbname string) string {
switch c.Driver {
case drivers.Postgres:
Expand Down
8 changes: 4 additions & 4 deletions pkg/form/form.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ func initModel() Model {
sslKey.Placeholder = "The location for the secret key used for the client certificate"
sslKey.CharLimit = 1000

sslPassord := textinput.NewModel()
sslPassord.Placeholder = "The password for the secret key"
sslPassord.CharLimit = 1000
sslPassword := textinput.NewModel()
sslPassword.Placeholder = "The password for the secret key"
sslPassword.CharLimit = 1000

sslRootCert := textinput.NewModel()
sslRootCert.Placeholder = "The name of a file containing SSL certificate authority (CA) certificate(s)"
Expand All @@ -255,7 +255,7 @@ func initModel() Model {
filePathInput: filePath,
sslCertInput: sslCert,
sslKeyInput: sslKey,
sslPasswordInput: sslPassord,
sslPasswordInput: sslPassword,
sslRootcertInput: sslRootCert,
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/gui/view_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func moveCursorHorizontally(direction string) func(g *gocui.Gui, v *gocui.View)

// moveCursorVertically moves the cursor vertically given a direction.
// the down position is handled in a special way to prevent the cursor keep going
// down when there's no characaters in the next lines.
// down when there's no characters in the next lines.
func moveCursorVertically(direction string) func(g *gocui.Gui, v *gocui.View) error {
return func(g *gocui.Gui, v *gocui.View) error {
if v != nil {
Expand Down

0 comments on commit 234d73c

Please sign in to comment.