hasura-fzf
This command has a fzf-like UI that allows you to find and run the file version used by the hasura cli command.
install
homebrew
brew install sho-hata/hasura-fzf/hasura-fzf
go
go install github.com/sho-hata/hasura-fzf@latest
binary
supported hasura cli commands
Usage
___ ___ ________ ________ ___ ___ ________ ________ ________
|\ \|\ \|\ __ \|\ ____\|\ \|\ \|\ __ \|\ __ \|\ _____\
\ \ \\\ \ \ \|\ \ \ \___|\ \ \\\ \ \ \|\ \ \ \|\ \ \ \__/
\ \ __ \ \ __ \ \_____ \ \ \\\ \ \ _ _\ \ __ \ \ __\
\ \ \ \ \ \ \ \ \|____|\ \ \ \\\ \ \ \\ \\ \ \ \ \ \ \_|
\ \__\ \__\ \__\ \__\____\_\ \ \_______\ \__\\ _\\ \__\ \__\ \__\
\|__|\|__|\|__|\|__|\_________\|_______|\|__|\|__|\|__|\|__|\|__|
\|_________|
Usage:
hasuraf [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
seed Find the seed file to apply and run the "hasura seed apply" command.
migrate Manage migrations on the database.
Flags:
-h, --help help for hasuraf
Use "hasuraf [command] --help" for more information about a command.
cautions when using
- 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.
features
seed apply
Find the seed file to apply and run the "hasura seed apply" command.
It will convert as follows
hasuraf seed
↓
hasura seed apply --file XXX
options
Compliant with originnal.
However, the --file
option is not accepted.
migrate apply
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
options
Compliant with originnal.
However, the --version
option is not accepted.
migrate delete(Developing)
supported hasura config version
Author
Shoki Hata(sho-hata) Released under the MIT License.