This command has a fzf-like UI that allows you to find and run the file version used by the hasura cli command.
brew install sho-hata/hasuraf/hasuraf
go install github.com/sho-hata/hasuraf@latest
___ ___ ________ ________ ___ ___ ________ ________ ________
|\ \|\ \|\ __ \|\ ____\|\ \|\ \|\ __ \|\ __ \|\ _____\
\ \ \\\ \ \ \|\ \ \ \___|\ \ \\\ \ \ \|\ \ \ \|\ \ \ \__/
\ \ __ \ \ __ \ \_____ \ \ \\\ \ \ _ _\ \ __ \ \ __\
\ \ \ \ \ \ \ \ \|____|\ \ \ \\\ \ \ \\ \\ \ \ \ \ \ \_|
\ \__\ \__\ \__\ \__\____\_\ \ \_______\ \__\\ _\\ \__\ \__\ \__\
\|__|\|__|\|__|\|__|\_________\|_______|\|__|\|__|\|__|\|__|\|__|
\|_________|
Usage:
hasuraf [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
seed Manage seed data.
migrate Manage migrations on the database.
delete clear migrations from local project and server.
Flags:
-h, --help help for hasuraf
Use "hasuraf [command] --help" for more information about a command.
- As with the
hasura cli
, run it in the directory where theconfig.yml
exists. - When you use it, put the .env file with "HASURA_GRAPHQL_DATABASE_URL" in the current directory.
- If the file is located elsewhere, use the "--envfile" option to specify the location of the .env file.
Find the seed file to apply and run the "hasura seed apply" command.
It will convert as follows
hasuraf seed apply
↓
hasura seed apply --file XXX
Compliant with originnal.
However, the --file
option is not accepted.
Find the migrate version to apply and run the "hasura migrate apply" command.
It will convert as follows
hasuraf migrate apply
↓
hasura migrate apply --version XXX
Compliant with originnal.
However, the --version
option is not accepted.
Find the migrate version to delete and run the "hasura migrate delete" command.
It will convert as follows
hasuraf migrate delete
↓
hasura migrate delete --version XXX
Compliant with original.
However, the --version
option is not accepted.
Shoki Hata(sho-hata) Released under the MIT License.