mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-19 02:02:32 +01:00
feat(goose): Added aliases for goose migration tool
Signed-off-by: Rubem Mota <rubemmota89@ŋmail.com>
This commit is contained in:
parent
f9f01e48a8
commit
296c67c9f3
2 changed files with 75 additions and 0 deletions
24
plugins/goose/README.md
Normal file
24
plugins/goose/README.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Goose plugin
|
||||
|
||||
This plugin adds aliases for the [Goose](https://pressly.github.io/goose/)
|
||||
|
||||
To use it, add `goose` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... goose)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
| ------ | ----------------------------| -----------------------------------------------------------------|
|
||||
| gmu | `goose up` | Apply all available migrations |
|
||||
| gubo | `goose up-by-one` | Migrate up a single migration from the current version |
|
||||
| gmd | `goose down` | Roll back a single migration from the current version |
|
||||
| gmr | `goose redo` | Roll back the most recently applied migration, then run it again |
|
||||
| gms | `goose status` | Print the status of all migrations: |
|
||||
| gmcs | `goose create migration sql`| Create a new SQL migration |
|
||||
| gmcg | `goose create migration go` | Create a new Go Migration |
|
||||
| gmut | `goose up-to <migration>` | Migrate up to a specific version` |
|
||||
| gmdt | `goose down-to <migration>` | Roll back migrations to a specific version. |
|
||||
| gmf | `goose fix` | Apply sequential ordering to migrations |
|
||||
Loading…
Add table
Add a link
Reference in a new issue