Mohd Bilal
b44443941f
cli: refactor cli
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6662
GitOrigin-RevId: 3b9199ae80c587f8d763df4889f4f81c73ccd3d3
2022-11-03 08:09:07 +00:00
Aravind K P
384756f7be
cli: support multiple admin secrets
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4566
GitOrigin-RevId: b03008099ec0b053fd24798b2b78d12471ed6fdd
2022-06-03 13:29:56 +00:00
Vishnu Bharathi
0016d3cad5
cli: avoid exporting hasura-specific schemas during hasura init
...
fixes https://github.com/hasura/graphql-engine/issues/8352
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4178
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: eff7067c34932435207eff794f9435356b55b666
2022-04-25 13:06:52 +00:00
Aravind K P
2ff0f25e08
cli: refactor metadataobject package
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3943
GitOrigin-RevId: 4cc8f67dd8b6ba0e78f1c35d415f89bd1b901705
2022-03-10 08:13:50 +00:00
Kali Vara Purushotham Santhati
780d942fad
cli: skip tls verfication for all API requests when insecure-skip-tls-verify
flag is set
...
closes: https://github.com/hasura/graphql-engine/issues/4926
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3307
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 90222fc2e5b176fbf5721fea3f5b2af929ca93f4
2022-02-04 11:11:37 +00:00
hasura-bot
d5e2d613f0
cli: stop using healthz endpoint
...
GITHUB_PR_NUMBER: 7994
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7994
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3268
Co-authored-by: Romain Briand <183016+romainbriand@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: e034fddaea604ba98797e2d9dcab779b2cc21378
2022-01-14 04:17:41 +00:00
Kali Vara Purushotham Santhati
f0bef2b482
cli: add All option for migrate
sub-commands (apply, delete and status) and seed apply
command
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2509
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 03ee878072b58c6dc7f43af9d26d30a5594d9a50
2021-12-23 15:59:56 +00:00
Aravind K P
96cfacb58b
cli: wrap errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3146
GitOrigin-RevId: 5dd78bf9145d3bfc9ff4281239d849e796a36246
2021-12-15 17:55:44 +00:00
hasura-bot
b3228150e8
Use proxy if env vars set ( close #7781 )
...
GITHUB_PR_NUMBER: 7796
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7796
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2814
Co-authored-by: Rob Hayes <3910392+robhayesmba@users.noreply.github.com>
GitOrigin-RevId: b01e8f7e91f36cf1b5bfb9c078a4744f71c34f17
2021-12-13 04:17:08 +00:00
Aravind K P
048471bdc0
cli: stop parsing unnecessary fields from config API
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2899
GitOrigin-RevId: 99dacb9dcbc6f1093b01aefbf7cbdc975d47569e
2021-12-09 12:52:21 +00:00
Aravind K P
97134b4d44
cli: defer validating plugins index and actions codegen repo
...
closes https://github.com/hasura/graphql-engine/issues/7695
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2647
GitOrigin-RevId: 675f8daa3a329f4159103178faf225e642acdb13
2021-11-10 09:22:06 +00:00
Kali Vara Purushotham Santhati
94a3be3e6e
cli: fix lint errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/1749
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 4515f7f2c58b7f28645b2c5a5d9842aa7a844eae
2021-10-13 14:39:15 +00:00
hasura-bot
744cf0233e
cli: support absolute paths in --envfile
...
GITHUB_PR_NUMBER: 5768
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5768
closes https://github.com/hasura/graphql-engine/issues/5689
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2545
Co-authored-by: cybai <6782666+CYBAI@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 38eacaaa5541a7162b584f1df1376266853fe4bf
2021-10-08 14:44:48 +00:00
Aravind K P
186baa7915
cli: add support for metadata subcommands to work with json/yaml files
...
closes https://github.com/hasura/graphql-engine/issues/7542
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2445
GitOrigin-RevId: c0087fa475cf4b353f4af150629684d3b9e1f82f
2021-09-29 11:13:31 +00:00
Kali Vara Purushotham Santhati
d87f7abd02
cli: throw user friendly errors when server is unreachable
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2369
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: af635612948822ae7ea9eb7b7b79d7d4f147e0e6
2021-09-27 14:53:44 +00:00
Kali Vara Purushotham Santhati
40c3d08d4a
cli: migrate apply
progress bar improvements
...
https://github.com/hasura/graphql-engine-mono/pull/2356
GitOrigin-RevId: 181db6e14ffd08083a1ffc97bf2e0e578f3da0fc
2021-09-22 12:53:43 +00:00
Kali Vara Purushotham Santhati
4d7aa0e105
cli: fix query endpoint construction
...
closes https://github.com/hasura/graphql-engine/issues/7196
https://github.com/hasura/graphql-engine-mono/pull/2025
GitOrigin-RevId: ab7c765d4de710dd08f48dc1bfb94eb606ac5d3f
2021-08-09 08:41:16 +00:00
hasura-bot
621029b4ed
cli: make cli-ext to be usable in the cli library
...
GITHUB_PR_NUMBER: 7099
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7099
https://github.com/hasura/graphql-engine-mono/pull/1632
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
GitOrigin-RevId: 610215142cadfab76fd8368c28a125f46da5e759
2021-06-27 13:50:20 +00:00
Aravind K P
be7a100ebf
cli: set default value for metadata_directory
...
https://github.com/hasura/graphql-engine-mono/pull/1630
GitOrigin-RevId: bb18133041739d30f5b270c3f64aeb680e47c2cd
2021-06-23 06:34:19 +00:00
Vishnu Bharathi
ee2c9cd4ad
cli: avoid race condition in cli-ext
...
https://github.com/hasura/graphql-engine-mono/pull/1610
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 87972a8a9c94252aa17a1f2304c048f66f6bdf2d
2021-06-18 16:14:27 +00:00
Aravind K P
c7ac1ede3f
cli: add migrate
and metadata
packages
...
>
### Description
>
This PR adds two new packages which implement the CLI requirements specified in RFC:https://github.com/hasura/lux/blob/cloud/docs/rfcs/20210614_github_integration.md
1. `pkg/metadata`
![image](https://user-images.githubusercontent.com/8335904/122384828-b4757d80-cf89-11eb-9e21-ef116fb928e9.png )
2. `pkg/migrate`
![image](https://user-images.githubusercontent.com/8335904/122510554-68771700-d023-11eb-9f5d-046d2c0cf18a.png )
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] CLI
https://github.com/hasura/graphql-engine-mono/pull/1598
GitOrigin-RevId: 0e2bce498386c5aae68dbca0fe383a6afff9d1a9
2021-06-18 06:25:14 +00:00
Aravind K P
3136ffad1b
cli: update go.mod
...
>
### Description
Update `go.mod` to allow other packages to import [v2.0.0 versions](https://blog.golang.org/v2-go-modules ).
### Changelog
- [x] `CHANGELOG.md` is updated with user-facing content relevant to this PR. If no changelog is required, then add the `no-changelog-required` label.
### Affected components
- [x] CLI
https://github.com/hasura/graphql-engine-mono/pull/1584
GitOrigin-RevId: a5d17ad20289d1cd7217763f56ef3ba6552d69c4
2021-06-16 11:45:07 +00:00
Vishnu Bharathi
4b76289d03
cli: add interactive prompt to get input when --database-name
flag is missing
...
GitOrigin-RevId: f92478d0ca6a4f6d0cfaa7aca3b4bb8a215a5cad
2021-06-09 07:13:46 +00:00
Aravind K P
ea6a2c9a14
cli: config v3 update script improvements
...
GitOrigin-RevId: cbd80af1334916e6d5af54a925a14b3849034646
2021-05-28 06:05:33 +00:00
Vishnu Bharathi
9e3f5a9f01
cli: validate pro plugin version
...
GitOrigin-RevId: 2bcb64256b357d07d0f06d8347260c649bfcc132
2021-05-20 09:14:29 +00:00
Aravind K P
9dfed5da57
cli: fix applying migrations in a different environment after config v3 update
...
GitOrigin-RevId: 2f5d554dba50da1d45ea9689afca07f4d0f2c1e5
2021-05-17 15:20:08 +00:00
Kali Vara Purushotham Santhati
489835eb36
cli: metadata apply,export enhancements
...
- modified the `dry-run` flag of metadata apply command.
- added new flag `o` which takes "json" or "yaml" as parameters for metadata apply command.
- added new flag `o` which takes "json" or "yaml" as parameters for metadata export command. It outputs the metadata from server to stdout in form of json or yaml and won't change the project's metadata.
- added deprecation warnings for `--from-file` flag
- added info message for describing change of behavior of `--dry-run` flag
- v3 metadata objects like `rest_endpoints` was also added to list of metadata objects in config v2 (fix)
- the order in which metadata objects are appended to metadata objects list matter when using `--dry-run` flag, refactored this order to match server metadata.
- `metadata apply` command can now accept json/yaml metadata from io pipe
- config v3 `metadata apply` didn't show any information to user when applied metadata is inconsistent, this is addressed.
- removed `github.com/ghodss/yaml` dependency from repo
- version metadata object was added twice during intialization (fix)
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 2316f519eb40645efd86ffee2a85d3c90543ec17
2021-05-14 19:09:59 +00:00
Kali Vara Purushotham Santhati
214e5363a6
cli: separate action operations from migrate driver
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 166de18b2ca3fd83ad6c0f471e0af2c8f22206d0
2021-04-12 17:28:32 +00:00
Aravind K P
cc3539415b
cli: fix seeds incorrectly being applied to databases
...
GitOrigin-RevId: cce2612ddfd90d1fd10a0a3561d24c64569a6935
2021-04-01 10:39:53 +00:00
Kali Vara Purushotham Santhati
b875d95a75
cli: separate the metadata operations from migrate driver
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 8f6791d5fd51d011623361ac2f5994c8badb50bf
2021-04-01 05:14:17 +00:00
hasura-bot
2099208e4b
cli: merges cli-ext with cli
...
GITHUB_PR_NUMBER: 6640
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6640
Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 362d82d8ee18afd7efa63e9c8912f6c5444f82dd
2021-03-17 15:10:03 +00:00
Aravind K P
f6ca551df4
cli: support mssql sources
...
GitOrigin-RevId: 4b1a63c8dc342ae4001b16c4b1dce282092d5c6f
2021-03-08 12:00:34 +00:00
Praveen Durairaju
0ff26100bf
update docs link to avoid redirects
...
GitOrigin-RevId: 1f2a1d21bfb9b2908d56305fa2dfb69270deafdf
2021-03-01 18:51:18 +00:00
hasura-bot
8ab4213020
cli: fix minor typo
...
GITHUB_PR_NUMBER: 6574
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6574
Co-authored-by: Samuel Ainsworth <226872+samuela@users.noreply.github.com>
GitOrigin-RevId: f62f046d9b3756d1bd64ee9ffeb1e047ebd159b9
2021-02-22 13:26:24 +00:00
Aravind K P
fe0d85804a
cli: fix tls config of api client
...
GitOrigin-RevId: 5fb26450aae3062b0b96093e7884f6277ed846f0
2021-02-22 12:43:11 +00:00
Aravind K P
c86e9392b9
cli: remove outdated/unused config values
...
GitOrigin-RevId: 846553eeb468164d5134bc702747fe986b165c5b
2021-02-18 13:16:40 +00:00
Aravind K P
cb029c317b
cli: refactor datasource -> database
...
GitOrigin-RevId: 89bb1fbac0848d833678e33e98b5d558917c13ea
2021-02-17 12:52:37 +00:00
Aravind K P
e514ea70ee
cli: add api middleware to check if project update is required
...
GitOrigin-RevId: 0ced06bc71ae2dd8c26bb98082a939d6b3e7c613
2021-02-17 11:16:22 +00:00
Aravind K P
a0995d1b30
cli: add client package, statestore implementations, deprecate config v1
...
GitOrigin-RevId: 5a1d9cb772ac62603f2543bfe6c01a95c0a035c6
2021-02-17 04:21:11 +00:00
hasura-bot
a398d3b190
cli: support datasources
...
GITHUB_PR_NUMBER: 6111
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6111
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 1f6517acfacb58c566bb5e48f74ea0dfa5c6f063
2021-01-18 17:12:09 +00:00
Aravind
1f2037947d
cli: manage seed migrations as sql files ( close #2431 ) ( #3763 )
2020-06-16 17:45:04 +05:30
Aravind
edbd9c4f48
cli: load assets from server if cdn is disabled ( close #3382 ) ( #3851 )
2020-06-03 09:36:23 +05:30
Shraddha Agrawal
d95d6378e8
cli: add support for servers with self-signed certs ( fix #4564 ) ( #4582 )
...
Co-Authored-By: Marion Schleifer <marion@hasura.io>
2020-04-28 17:29:57 +05:30
Shraddha Agrawal
e07761eb33
cli: validate endpoint using ParseRequestURI ( fix #4407 ) ( #4416 )
2020-04-23 08:40:24 +05:30
Shraddha Agrawal
75d35ac2f6
cli: add suport for .env file ( fix #4129 ) ( #4454 )
2020-04-23 08:17:51 +05:30
Aravind Shankar
aca11f0944
cli: spinner bug, add cli_environment in global config ( #4459 )
...
close #4456
close #4436
close #4496
2020-04-22 14:45:42 +05:30
Aravind Shankar
491a50b1e9
cli: link cli-ext plugin with cli version ( close #4105 ) ( #4280 )
2020-04-13 08:46:06 +05:30
Aravind
14b5d10dfb
cli: refactor ec to allow setting hge api headers ( #4347 )
2020-04-09 15:00:47 +05:30
Aravind Shankar
995e198d0a
cli: show env vars for the flags in command help ( close #4263 ) ( #4326 )
2020-04-08 17:25:42 +05:30
Aravind Shankar
21b61af109
cli: allow customization of server api paths ( close #4016 ) ( #4174 )
2020-04-08 16:29:21 +05:30