Skip to content

Commit

Permalink
chore: more readme, fix init commands
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vanesyan committed Oct 9, 2024
1 parent 30d5971 commit 2bf424a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

An SQL migrator that is easy to embed.

## Getting started

### Creating a new Conduit migration project

To create a new conduit project run in the current directory:

```
$ conduit init
```

By default conduit initialises a new project in `$(cwd)/migrations` to create the project in a different location.

```
$ conduit init --migrations-dir path/to/project
```

## FAQ

<details>
Expand Down
2 changes: 1 addition & 1 deletion internal/command/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

var (
databaseUrlFlagName = "database-url"
migrationsDirFlagName = "dir"
migrationsDirFlagName = "migrations-dir"
)

var DatabaseURLFlag = &cli.StringFlag{

Check failure on line 15 in internal/command/common/common.go

View workflow job for this annotation

GitHub Actions / lint

undefined: cli (typecheck)
Expand Down
1 change: 1 addition & 0 deletions internal/command/initialise/initialise.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func NewCommand() *cli.Command {
Aliases: []string{"i"},
Usage: "initialise migration directory",
Flags: []cli.Flag{
common.MigrationsDirFlag,
&cli.StringFlag{
Name: "namespace",
Aliases: []string{"ns"},
Expand Down

0 comments on commit 2bf424a

Please sign in to comment.