Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
/ hasuraf Public archive

This command has a fzf-like UI that allows you to find and run the file version used by the hasura command.

License

Notifications You must be signed in to change notification settings

sho-hata/hasuraf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hasuraf

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/hasuraf/hasuraf

go

go install github.com/sho-hata/hasuraf@latest

binary

releases

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        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.

cautions when using

  • As with the hasura cli, run it in the directory where the config.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 apply

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

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

options

Compliant with original.

However, the --version option is not accepted.

supported hasura config version

config v3

Author

Shoki Hata(sho-hata) Released under the MIT License.

About

This command has a fzf-like UI that allows you to find and run the file version used by the hasura command.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages