Files
iris-context/commands/js/sequelize.go
T
VERSE 2ef3c90819 feat(commands): more commands (#30)
- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
2026-07-04 22:08:36 +07:00

37 lines
1.9 KiB
Go

package js
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "sequelize",
Description: "The environment to run the command in",
Options: []core.Option{
{Name: "--env", Description: "The environment to run the command in"},
{Name: "--config", Description: "The path to the config file"},
{Name: "--options-path", Description: "The path to a JSON file with additional options"},
{Name: "--migrations-path", Description: "The path to the migrations folder"},
{Name: "--seeders-path", Description: "The path to the seeders folder"},
{Name: "--models-path", Description: "The path to the models folder"},
{Name: "--url", Description: "The database connection string to use"},
{Name: "--debug", Description: "When available show various debug information"},
{Name: "--help", Description: "Show help"},
{Name: "--version", Description: "Show version number"},
{Name: "--charset", Description: "Pass charset option to dialect, MYSQL only"},
{Name: "--collate", Description: "Pass collate option to dialect"},
{Name: "--encoding", Description: "Pass encoding option to dialect, PostgreSQL only"},
{Name: "--ctype", Description: "Pass ctype option to dialect, PostgreSQL only"},
{Name: "--template", Description: "Pass template option to dialect, PostgreSQL only"},
{Name: "--force", Description: "Will drop the existing config folder and re-create it"},
{Name: "--to", Description: "Migration name to run migrations until"},
{Name: "--from", Description: "Migration name to start migrations from (excluding)"},
{Name: "--seed", Description: "List of seed files"},
{Name: "--name", Description: "Name of the migration to undo"},
{Name: "--attributes", Description: "A list of attributes"},
{Name: "--underscored", Description: "Use snake case for the timestamp's attribute names"},
},
})
}