cli: change 'hasura seeds' to 'hasura seed' with 'seeds' as alias (#5693)

https://github.com/hasura/graphql-engine/pull/5693
This commit is contained in:
Ahmed Kamal 2020-10-07 20:26:30 +11:00 committed by GitHub
parent 85c9283326
commit d3abb474e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 22 deletions

View File

@ -62,10 +62,11 @@ This release contains the [PDV refactor (#4111)](https://github.com/hasura/graph
**NOTE:** If you have event triggers with names greater than 42 chars, then you should update their names to avoid running into Postgres identifier limit bug (#5786)
- console: allow user to cascade Postgres dependencies when dropping Postgres objects (close #5109) (#5248)
- console: mark inconsistent remote schemas in the UI (close #5093) (#5181)
- cli: add missing global flags for seed command (#5565)
- cli: allow seeds as alias for seed command (#5693)
- console: remove ONLY as default for ALTER TABLE in column alter operations (close #5512) #5706
- console: add option to flag an insertion as a migration from `Data` section (close #1766) (#4933)
- console: add `<3 hasura` section to view updates and notifications from Hasura (#5070)
- cli: add missing global flags for seeds command (#5565)
- docs: add docs page on networking with docker (close #4346) (#4811)
- docs: add postgres concepts page to docs (close #4440) (#4471)

View File

@ -12,8 +12,8 @@ func NewSeedCmd(ec *cli.ExecutionContext) *cobra.Command {
v := viper.New()
ec.Viper = v
seedCmd := &cobra.Command{
Use: "seeds",
Aliases: []string{"sd"},
Use: "seed",
Aliases: []string{"sd", "seeds"},
Short: "Manage seed data",
SilenceUsage: true,
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {

View File

@ -1,10 +1,11 @@
.. meta::
:description: Use hasura seeds to manage seed data
:keywords: hasura, docs, CLI, hasura seeds
.. _hasura_seeds:
Hasura CLI: hasura seeds
Hasura CLI: hasura seed
------------------------
Manage seed data
@ -25,7 +26,7 @@ Options
--admin-secret string admin secret for Hasura GraphQL Engine (env "HASURA_GRAPHQL_ADMIN_SECRET")
--certificate-authority string path to a cert file for the certificate authority (env "HASURA_GRAPHQL_CERTIFICATE_AUTHORITY")
--endpoint string http(s) endpoint for Hasura GraphQL Engine (env "HASURA_GRAPHQL_ENDPOINT")
-h, --help help for seeds
-h, --help help for seed
--insecure-skip-tls-verify skip TLS verification and disable cert checking (default: false) (env "HASURA_GRAPHQL_INSECURE_SKIP_TLS_VERIFY")
Options inherited from parent commands
@ -43,7 +44,7 @@ SEE ALSO
~~~~~~~~
* :ref:`hasura <hasura>` - Hasura GraphQL Engine command line tool
* :ref:`hasura seeds apply <hasura_seeds_apply>` - Apply seed data
* :ref:`hasura seeds create <hasura_seeds_create>` - Create a new seed file
* :ref:`hasura seed apply <hasura_seed_apply>` - Apply seed data
* :ref:`hasura seed create <hasura_seed_create>` - Create a new seed file
*Auto generated by spf13/cobra*

View File

@ -1,10 +1,11 @@
.. meta::
:description: Use hasura seeds apply to apply seed data
:keywords: hasura, docs, CLI, hasura seeds apply
.. _hasura_seeds_apply:
.. _hasura_seed_apply:
Hasura CLI: hasura seeds apply
Hasura CLI: hasura seed apply
------------------------------
Apply seed data
@ -17,7 +18,7 @@ Apply seed data
::
hasura seeds apply [flags]
hasura seed apply [flags]
Examples
~~~~~~~~
@ -56,6 +57,6 @@ Options inherited from parent commands
SEE ALSO
~~~~~~~~
* :ref:`hasura seeds <hasura_seeds>` - Manage seed data
* :ref:`hasura seed <hasura_seed>` - Manage seed data
*Auto generated by spf13/cobra*

View File

@ -1,10 +1,10 @@
.. meta::
:description: Use hasura seeds create to create a new seed file
:keywords: hasura, docs, CLI, hasura seeds create
:keywords: hasura, docs, CLI, hasura seed create
.. _hasura_seeds_create:
.. _hasura_seed_create:
Hasura CLI: hasura seeds create
Hasura CLI: hasura seed create
-------------------------------
Create a new seed file
@ -17,7 +17,7 @@ Create a new seed file
::
hasura seeds create seed_name [flags]
hasura seed create seed_name [flags]
Examples
~~~~~~~~
@ -59,6 +59,6 @@ Options inherited from parent commands
SEE ALSO
~~~~~~~~
* :ref:`hasura seeds <hasura_seeds>` - Manage seed data
* :ref:`hasura seed <hasura_seed>` - Manage seed data
*Auto generated by spf13/cobra*

View File

@ -62,9 +62,9 @@ Commands
- :ref:`hasura plugins upgrade <hasura_plugins_upgrade>`
- :ref:`hasura scripts <hasura_scripts>`
- :ref:`hasura scripts update-project-v2 <hasura_scripts_update-project-v2>`
- :ref:`hasura seeds <hasura_seeds>`
- :ref:`hasura seeds apply <hasura_seeds_apply>`
- :ref:`hasura seeds create <hasura_seeds_create>`
- :ref:`hasura seed <hasura_seed>`
- :ref:`hasura seed apply <hasura_seed_apply>`
- :ref:`hasura seed create <hasura_seed_create>`
- :ref:`hasura update-cli <hasura_update-cli>`
- :ref:`hasura version <hasura_version>`
@ -110,9 +110,9 @@ Refer to :ref:`uninstall_hasura_cli`.
hasura plugins upgrade <hasura_plugins_upgrade>
hasura scripts <hasura_scripts>
hasura scripts update-project-v2 <hasura_scripts_update-project-v2>
hasura seeds <hasura_seeds>
hasura seeds apply <hasura_seeds_apply>
hasura seeds create <hasura_seeds_create>
hasura seed <hasura_seed>
hasura seed apply <hasura_seed_apply>
hasura seed create <hasura_seed_create>
hasura update-cli <hasura_update-cli>
hasura version <hasura_version>
uninstall-hasura-cli