Aravind K P
061f6b96ed
cli: port migrate
, migrate status
to use internal/errors
...
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6547
GitOrigin-RevId: edef43331e06b227484e84a39f4b81b5fdaf1658
2022-11-03 05:56:00 +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
Divi
4ed8ba8bb3
cli: fix inconsistent metadata object list rendering
...
closes https://github.com/hasura/graphql-engine/issues/7202
https://github.com/hasura/graphql-engine-mono/pull/1781
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: bcbdf74773aa8f653ebe62c5bf00bcbda1aa51ee
2021-07-16 05:26:47 +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
Aravind K P
7f420ad1ae
cli: add --all--databases
flag on migrate apply
...
GitOrigin-RevId: 87a8b4250abad349153d1af73917859bd8f2a31a
2021-04-01 12:59:20 +00:00
Aravind K P
f6ca551df4
cli: support mssql sources
...
GitOrigin-RevId: 4b1a63c8dc342ae4001b16c4b1dce282092d5c6f
2021-03-08 12:00:34 +00:00
Aravind K P
8996bcf70d
cli: use v2 replace_metadata
in config v3
...
GitOrigin-RevId: b0263799a17052195ebf295516c3105c5c80ce74
2021-02-18 05:37:46 +00:00
Aravind K P
cb029c317b
cli: refactor datasource -> database
...
GitOrigin-RevId: 89bb1fbac0848d833678e33e98b5d558917c13ea
2021-02-17 12:52:37 +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
Ashish Rao
d9cc676790
cli: add --dry-run flag to migrate apply command ( close #3128 ) ( #3499 )
2020-06-03 16:49:36 +05:30
Aravind
de41438e8a
cli: refactor console command ( #4150 )
2020-04-07 14:53:20 +05:30
Aravind Shankar
bb63d7e60e
cli: allow managing actions ( #3859 )
...
Co-authored-by: Rishichandra Wawhal <rishichandra.wawhal@gmail.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Aravind <aravindkp@outlook.in>
Co-authored-by: Anon Ray <ecthiender@users.noreply.github.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-24 21:44:46 +05:30
Ashish Rao
b183eba9ba
add examples to all cli commands ( #3475 ) ( #3492 )
2019-12-12 10:46:36 +05:30
Euler
56a217bbaa
add name to migrate status response ( close #2376 ) ( #3109 )
2019-11-28 17:06:16 +05:30
Aravind Shankar
5f3294f4a0
optimise migrate api for console on cli ( #2895 )
2019-09-18 11:06:16 +05:30
Aravind Shankar
5f02ebdefa
added feedback on migration commands ( close #1410 ) ( #1931 )
2019-04-03 16:59:58 +05:30
Aravind Shankar
8043ddeebf
accept a json or yaml file for metadata apply command ( close #1698 ) ( #1746 )
2019-03-20 10:40:06 +05:30
nizar-m
f83a8e591f
rename access-key to admin-secret ( close #1347 ) ( #1540 )
...
Rename the admin secret key header used to access GraphQL engine from X-Hasura-Access-Key to X-Hasura-Admin-Secret.
Server CLI and console all support the older flag but marks it as deprecated.
2019-02-14 15:07:47 +05:30
Aravind Shankar
c64a83f073
display error message for invalid migration file ( fix #1224 ) ( #1238 )
2019-01-04 15:15:54 +05:30
Shahidh K Muhammed
330f90de40
add project flag, change persistentprerun to prerun ( close #552 ) ( #557 )
...
### Description
Adds `--project` flag to the CLI and changes all `PersistentPreRuns` to `PreRuns`
What component does this PR affect?
- [ ] Server
- [ ] Console
- [x] CLI
- [ ] Docs
- [ ] Community Content
- [ ] Build System
### Related Issue
#552
2018-09-27 19:27:17 +05:30
Aravind Shankar
396a2ccf8d
change hasuradb url format, export some migrate functions ( #294 )
...
* fix migrate to use headers in query params
* export executeMigrations and PrintStatus
2018-08-22 00:07:47 +05:30
Aravind Shankar
1bff452cb4
handle server endpoints that contains a url path ( #64 )
2018-07-09 19:17:38 +05:30
Aravind Shankar
1998e211af
cli: update tests ( #47 )
...
* remove docker from migrate cmd test
* export migration status
* [cli] add fake writer for spinner
* Update console.go
* Update migrate_test.go
2018-07-06 10:36:27 +05:30
Aravind Shankar
048c067fa1
[cli] add tests for migrate commands ( #9 )
2018-06-28 14:06:57 +05:30
Shahidh K Muhammed
6d0d75fbe3
[cli] add comments ( #4 )
...
Especially for godoc
2018-06-28 14:06:25 +05:30
Shahidh
8e41d75aa3
refactor most of the code
2018-06-26 21:39:32 +05:30
Shahidh
f7409ef2eb
add hasura cli package
2018-06-24 19:10:48 +05:30