Kali Vara Purushotham Santhati
2aeb6ad0b1
cli: use absolute path of project directory
...
closes https://github.com/hasura/graphql-engine/issues/7089
closes https://github.com/hasura/graphql-engine/issues/6499
https://github.com/hasura/graphql-engine-mono/pull/1717
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 74209e249c692d01f2bd849181c8a2ef46493e74
2021-07-16 12:59:04 +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
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
Kali Vara Purushotham Santhati
59679babfa
cli: add server
flag to migrate delete
and modify the docs for resetting migrations
...
https://github.com/hasura/graphql-engine-mono/pull/1540
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 8aceb35c583d20b7dc7b16f257e20c83171008a2
2021-06-22 11:16:14 +00:00
Kali Vara Purushotham Santhati
a924720a3a
cli: add skip-execution
support for up
and down
flags in migrate apply
...
https://github.com/hasura/graphql-engine-mono/pull/1510
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 9f7b271bda08ecd156a6220e830063bbb36a4b36
2021-06-21 15:57:41 +00:00
Aravind K P
4517478ccc
cli: add support for citus sources
...
https://github.com/hasura/graphql-engine-mono/pull/1247
GitOrigin-RevId: 8383a37f71a4d45fe01c002eb229102f0dd38e9a
2021-06-21 14:35:00 +00:00
Kali Vara Purushotham Santhati
fbbd423d8b
cli: migrate create gives warning if database isn't connected to server
...
https://github.com/hasura/graphql-engine-mono/pull/1518
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: a9e836545922719bcbd6e8c9c027df6056d23cef
2021-06-21 13:55:09 +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
Kali Vara Purushotham Santhati
a70e6089c8
cli: show only differences in metadata on metadata diff
...
https://github.com/hasura/graphql-engine-mono/pull/461
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 626bdfd8d1d05996153cd9676f1695ea796b00d9
2021-06-17 10:16:17 +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
c1fd8beeef
Revert "cli: add exclude-schema & full flags to migrate create command ( #1564 )" ( #1566 )
...
This reverts commit b4441cbde667c66f3ae203d752d6b33a0833f34e.
GitOrigin-RevId: 33ddf5c3d94e888497eb909ccb18d35bb5614ea2
2021-06-14 12:28:34 +00:00
hasura-bot
6e5186475c
cli: add exclude-schema & full flags to migrate create command ( #1564 )
...
GITHUB_PR_NUMBER: 5713
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/5713
https://github.com/hasura/graphql-engine-mono/pull/1564
Co-authored-by: Sameer Kolhar <6604943+kolharsam@users.noreply.github.com>
Co-authored-by: Kali Vara Purushotham Santhati <72007599+purush7@users.noreply.github.com>
GitOrigin-RevId: b4441cbde667c66f3ae203d752d6b33a0833f34e
2021-06-14 12:11:31 +00:00
Kali Vara Purushotham Santhati
8bfc56b7c4
cli: remove the unnecessary empty lines in actions.graphql generated by metadata export command
...
closes https://github.com/hasura/graphql-engine/issues/5338
GitOrigin-RevId: 83bd8492beb9f52c761d5857ca369425c69691a4
2021-06-09 10:46:05 +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
Kali Vara Purushotham Santhati
7ab5dd4265
cli: use go:embed to embed console static assets
...
GitOrigin-RevId: 3bb86dec853ebfdacd049b9424dd58c51c930cb7
2021-06-04 07:28:22 +00:00
Aravind K P
d8198a8bad
cli,ci: testsuite enhancements
...
- remove `HASURA_TEST_CLI_HGE_DOCKER_TAG` & `HASURA_TEST_CLI_HGE_DOCKER_REPO` env variables
- add `HASURA_TEST_CLI_HGE_DOCKER_IMAGE` environment variable to configure hge image used in tests
- add template test project directories
- add helper functions to manipulate the template projects in individual tests
- add config v2 tests
Co-authored-by: Kali Vara Purushotham Santhati <72007599+purush7@users.noreply.github.com>
GitOrigin-RevId: 009a74c042861ff0a8dec2b06002e55de3a8a629
2021-06-03 13:27:24 +00:00
Aravind K P
757327d94c
cli: use stdout logger in version
command
...
closes https://github.com/hasura/graphql-engine/issues/6998
GitOrigin-RevId: 202eecc6085970aa5433e652cfafd34195252dbf
2021-05-31 04:13:34 +00:00
Aravind K P
ea6a2c9a14
cli: config v3 update script improvements
...
GitOrigin-RevId: cbd80af1334916e6d5af54a925a14b3849034646
2021-05-28 06:05:33 +00:00
Aravind K P
8ebf5eef2b
cli: disable reading metadata from pipe
...
closes https://github.com/hasura/graphql-engine/issues/6987
GitOrigin-RevId: f12b7475055d2f9767a6dd20eee531042bdbcbc5
2021-05-27 14:17:25 +00:00
Kali Vara Purushotham Santhati
5e92ce028e
cli: migrate delete
command, update migration state on server after squash
...
It contains 2 flags
all - To delete all migrations locally and on database
version - To delete a single migration locally and on database
Usage :
`hasura migrate delete --all`
`hasura migrate delete --version <version_number>`
Additional fix :
The `migrate squash` will deletes the migration history on server after squashing if user opts to delete the migrations.
closes https://github.com/hasura/graphql-engine-mono/issues/292
closes https://github.com/hasura/graphql-engine/issues/5373
closes https://github.com/hasura/graphql-engine/issues/6434
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: fa7ceae7a1970d6724fb601a147900e880ad2e6f
2021-05-24 02:34:33 +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
Vishnu Bharathi
ebc01c2378
cli, ci: enables docker based tests
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: d7a53e512d296bdd4b2119bb1d0b89e30da7d476
2021-05-17 00:30: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
hasura-bot
20694a96f0
Minor grammar tweak on init command errors (exist -> exists)
...
GITHUB_PR_NUMBER: 6624
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6624
Co-authored-by: Zack Amiton <20943979+Nathansbud@users.noreply.github.com>
GitOrigin-RevId: e30d2187a980b7622a6e68c32608b68f2ccdd491
2021-05-04 16:36:50 +00:00
Aravind K P
eeafc06288
cli: update console assets buckets selection
...
GitOrigin-RevId: 524b4612cf059315fc3a6466857994b8909d5d67
2021-05-04 12:00:12 +00:00
Aravind K P
054a41d93d
cli: (regression) fix behaviour of metadata apply
--dry-run
flag
...
GitOrigin-RevId: e1f61866f78bbf8b255852c9b9390f02220f5b6b
2021-04-21 08:22:47 +00:00
Aravind K P
226a0975e3
cli: misc fixes
...
GitOrigin-RevId: b7bd99795ea1732dcb3bddf45985cd1dc04fbbea
2021-04-21 07:27:21 +00:00
Aravind K P
7638d1832a
cli: add support for bigquery
...
GitOrigin-RevId: 8d479cbd056ee839b11ae24557085573b3e5b5ba
2021-04-19 07:06:18 +00:00
Aravind K P
8bc7c2089c
cli: fix errors being ignored on metadata apply
...
GitOrigin-RevId: 1f526c70f57082aa968ebc3d957c78613e9a399e
2021-04-16 11:51:48 +00:00
Kali Vara Purushotham Santhati
9340a5b1cd
cli: e2e tests for actions and seeds commands
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: 9371c94b55cb375246784e53029fdece7db2fb58
2021-04-13 08:23:57 +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
Kali Vara Purushotham Santhati
379b812674
cli: add e2e tests for metadata and migrate commands
...
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: d63e0452fdb97a8f6c4e921467fc2a1de50639a1
2021-04-05 14:01:35 +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
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
Kali Vara Purushotham Santhati
c3e60aba28
cli: update cli help texts and docs generation
...
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com>
GitOrigin-RevId: b6909583093baac4a69296721feae149ca6a0605
2021-03-15 15:41:54 +00:00
Aravind K P
ae92ac4941
cli: rename flag --database to --database-name
...
GitOrigin-RevId: 37fb8dd4f82c2b68f87013e5ec87d5b2dab8853f
2021-03-09 06:44:37 +00:00
Aravind K P
f6ca551df4
cli: support mssql sources
...
GitOrigin-RevId: 4b1a63c8dc342ae4001b16c4b1dce282092d5c6f
2021-03-08 12:00:34 +00:00
Kali Vara Purushotham Santhati
34b611ae43
cli: fix extension of generated seeds file
...
close https://github.com/hasura/graphql-engine/issues/6422
GitOrigin-RevId: 2cbf4a64598e7ef8866cedb46686a8ec4642a63d
2021-03-08 08:30:17 +00:00
Aravind K P
3bfa6834a8
cli: add precondition checks for config v3 update command
...
GitOrigin-RevId: 62f786ea8fc8d14deb0e78bbbdc2467b7a4e0e9e
2021-03-08 06:58:49 +00:00
Praveen Durairaju
0ff26100bf
update docs link to avoid redirects
...
GitOrigin-RevId: 1f2a1d21bfb9b2908d56305fa2dfb69270deafdf
2021-03-01 18:51:18 +00:00
Aravind K P
fe0d85804a
cli: fix tls config of api client
...
GitOrigin-RevId: 5fb26450aae3062b0b96093e7884f6277ed846f0
2021-02-22 12:43:11 +00:00
hasura-bot
4c7599566d
cli: remove metadata.yaml from migrations directory after update-config-v2 script ( fixes #6112 )
...
GITHUB_PR_NUMBER: 6121
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6121
Co-authored-by: Kali Vara Purushotham Santhati <72007599+purush7@users.noreply.github.com>
GitOrigin-RevId: 79836c5fa0c325f0b74d97b24616476c3a56df79
2021-02-18 10:48: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
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
Kali Vara Purushotham Santhati
2acad94fb1
cli: misc fixes
...
GitOrigin-RevId: 9aa0d4b162dc41869bbc5d77cdba727e9f3becb9
2020-11-24 06:12:24 +00:00
Vishnu Bharathi P
58c44f55dd
Merge oss/master onto mono/main
...
GitOrigin-RevId: 1c8c4d60e033c8a0bc8b2beed24c5bceb7d4bcc8
2020-11-12 22:37:19 +05:30
Vishnu Bharathi P
666058ab7f
oss: renames dot files and folders
...
GitOrigin-RevId: 540aeec3be091e1cfb7b05a988f50445534ed663
2020-11-12 22:37:19 +05:30
Saran Balaji
b5db6c2019
cli: fix lint errors in scripts_update_config_v2.go ( #5983 )
...
https://github.com/hasura/graphql-engine/pull/5983
2020-11-07 10:07:53 +00:00
Daniel Shuy
c5ca59208e
cli: fix lint errors in cli/commands/init.go ( #5943 )
...
https://github.com/hasura/graphql-engine/pull/5943
2020-10-29 05:09:36 +00:00
Yash Saravgi
72b1d01ca7
cli: fix lint error in commands\docs.go ( #5929 )
...
https://github.com/hasura/graphql-engine/pull/5929
2020-10-22 07:05:32 +00:00
Ahmed Kamal
d3abb474e5
cli: change 'hasura seeds' to 'hasura seed' with 'seeds' as alias ( #5693 )
...
https://github.com/hasura/graphql-engine/pull/5693
2020-10-07 09:26:30 +00:00
Marion Schleifer
2358f6bbae
cli/docs: add missing global flags for seeds command and add new cli commands to docs ( #5565 )
2020-08-18 17:59:58 +05:30
slimlime
684c25b14b
docs: update bash_completion directory typo ( #5418 )
2020-08-18 10:12:58 +02:00
Sameer Kolhar
963e1106dc
cli: fix error while creating seed file from table names having upper case alphabets ( #5549 )
2020-08-10 11:28:03 +05:30
Aravind
1f2037947d
cli: manage seed migrations as sql files ( close #2431 ) ( #3763 )
2020-06-16 17:45:04 +05:30
Aravind
5a648a9bb2
cli: fix cron triggers not being exported on a metadata export ( close #5047 ) ( #5060 )
2020-06-16 14:38:36 +05:30
Sameer Kolhar
13e4edbdf8
cli: add flags --up-sql and --down-sql to migrate create command ( close #5026 ) ( #5039 )
2020-06-16 11:30:20 +05:30
Ashish Rao
d9cc676790
cli: add --dry-run flag to migrate apply command ( close #3128 ) ( #3499 )
2020-06-03 16:49:36 +05:30
Aravind
177556f441
cli: fix tests failing in local dev environment ( #4729 )
2020-06-03 14:01:40 +05:30
Aravind
edbd9c4f48
cli: load assets from server if cdn is disabled ( close #3382 ) ( #3851 )
2020-06-03 09:36:23 +05:30
Aravind Shankar
16d01bc908
cli: add support for skipping execution while generating migrations through the migrate REST API ( #4475 )
2020-06-02 10:41:47 +05:30
scriptonist
b771956336
cli: fix update scripts failing when sql migrations files are already present
2020-05-26 08:46:36 +05:30
Aravind
f1c3b43f6f
cli: fix docs failing to build ( close #4637 ) ( #4698 )
2020-05-07 13:03:50 +05:30
Can Taşpınar
9d815598cc
cli: include new commands in help text ( fix #4623 ) ( #4626 )
2020-05-05 09:21:20 +05:30
Shraddha Agrawal
88685736c7
Merge branch 'master' into init-current-directory
2020-04-28 18:35:00 +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
f7b99b53e4
minor fixes
2020-04-27 13:26:34 +05:30
Shraddha Agrawal
d5ae48c14e
update help text and docs for init command
2020-04-27 10:03:10 +05:30
Shraddha Agrawal
e9cad694ed
validate pwd is neither filesystem root nor an existing hasura project
2020-04-27 09:04:32 +05:30
Shraddha Agrawal
3053af1055
cli: allow initialising project in current directory
2020-04-26 22:24:48 +05:30
Shraddha Agrawal
38529b3960
cli: remove irrelevant flags from init command ( close #4508 ) ( #4549 )
2020-04-25 11:33:13 +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
Rishichandra Wawhal
8a5cc73ae6
cli, console: actions dx improvements ( close #4306 , #4311 ) ( #4308 )
2020-04-16 13:40:47 +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
e1b0562fd8
cli: clarify flags on migrate create ( #4316 )
2020-04-09 14:35:05 +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
Aravind Shankar
d5e61716f8
cli: add support for multiple versions of plugin ( close #4105 ) ( #4135 )
2020-04-07 19:42:14 +05:30
Aravind
de41438e8a
cli: refactor console command ( #4150 )
2020-04-07 14:53:20 +05:30
Aravind Shankar
09e0e2f2a5
cli: fix init command to generate correct config ( fix #4036 ) ( #4038 )
2020-03-26 08:54:05 +05:30
Aravind Shankar
13e8a3c010
cli: send command path in telemetry data ( #4095 )
2020-03-26 08:38:54 +05:30
Dmitry Minkovsky
b6780e8a15
cli: fix typo in cli example for squash ( fix #4047 ) ( #4049 )
2020-03-09 15:19:00 +05:30
Shahidh K Muhammed
d7d53f222c
cli: add version flag in update-cli command ( #3996 )
...
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-03-05 12:25:33 +05:30
Aravind Shankar
e3b843ce81
cli: fix flags in actions, migrate and metadata cmd ( fix #3982 ) ( #3991 )
2020-03-03 12:36:59 +05:30
Praveen Durairaju
865b150c82
noop: replace subdomain links with subpath ( #3869 )
...
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
2020-02-27 15:43:07 +05:30
Aravind Shankar
89b6ce86ca
cli: misc fixes related to actions ( #3942 )
2020-02-25 12:16:11 +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
Aravind
c258fa75cb
cli: add --goto flag in hasura migrate apply ( close #2689 ) ( #3715 )
...
* cli: add --goto <version> flag to migrate command
* cli: fix error encoutered in goto, when on version -1
* do down migrations one step down
* reorganize code
* in case of up "gotos" make sure that all previous migration in migration chain are applied
* modify readUp and readDown functions to account for --goto use case
* refactor to clean up and adopt a better implementation addressing the comments
* remove empty error handling step
* return ErrNoChange when no migrations were applied
* respect m.stop() can panic so place conditional cases after that and add a couple other small fixes
* fix bug caused by early checking of versions
* fix to add migration_mode and nil version check
* add some more examples for migrate apply command
Co-authored-by: Aravind Shankar <face11301@gmail.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2020-02-03 12:33:32 +05:30
Shahidh K Muhammed
f6a43fe3ba
fix various version-related issues with cli ( close #3706 ) ( #3709 )
...
- do not quit on server-cli version mismatch, show warning
- fix a bug in update-cli command which prevets updates to pre-release
versions
- if a console template for a particular version is not found, use the
latest template
2020-01-16 09:23:18 +05:30
Ashish Rao
2fc49eaa63
cli: add browser flag to console command ( close #3333 ) ( #3601 )
...
Co-authored-by: Ashish Rao <ashishrao@hasura.io>
Co-authored-by: Thibaut Tiberghien <thibaut@smplrspace.com>
2020-01-08 08:36:09 +05:30
Pradeep Murugesan
dece69c5a9
cli: add commands to manage inconsistent metadata ( close #2766 ) ( #2973 )
...
Co-authored-by: Aravind Shankar <face11301@gmail.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2019-12-25 14:03:06 +05:30
Shahidh K Muhammed
8ea6f77c7b
cli: add directory name as an argument to init cmd ( #3590 )
...
* add directory-name as an argument to init command
* change dev version to a const string
2019-12-25 14:01:29 +05:30
Alexis King
bdf79dfc48
Fix failing CLI test ( #3567 )
2019-12-18 16:45:29 -06:00