Commit Graph

20 Commits

Author SHA1 Message Date
qiangmzsx f8b48c2a8a
Removing the use of the ioutil package (#1037)
Signed-off-by: qiangmzsx <qiangmzsx@gmail.com>
2022-08-07 17:30:20 +05:30
Shubham Sharma 9472e6d977
Make CLI exit with error code if dapr run or invoke fails (#905)
* Make CLI exit with error code if dapr or app run fail

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fail when run command returns error

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix test run e2e test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix e2e test cases

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add exit code for invoke

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add exit with error code for process kill failure

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add e2e test for invoke failure

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Invoke invalid app id

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add another error message in e2e test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-03-09 19:29:21 +05:30
tanvigour 050eb553f2
Go linter upgrade to 1.44.2 (#908)
* Go linter upgrade to 1.44

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* remove old excludes and address new ones

Signed-off-by: tanvigour <tanvi.gour@gmail.com>
2022-03-07 13:18:48 +05:30
Dmitry Shmulevich 0f9d0d3a89
replaced license headers (#855)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-10 08:09:09 +05:30
amulyavarote c2ff74370f Added a warning message for unix domain socket (#822)
* Added a warning message for unix domain socket

* Added socket warning message to invoke and publish

* Corrected socket name in publish cmd

* Corrected the variable names for invoke and publish

* Removed unused variables port and grpcPort from invoke and publish

* Cleaned up the error of warning messages

* Cleaned up the wording of warning messages

* Cleaned up the wording of warning messages

* Cleaned up the wording of warning messages on run, invoke and publish

* Modified the warning message

Co-authored-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2021-11-12 12:40:42 -08:00
Long Dai 4ccf10f9e4
ci: standard linter config (#793)
Signed-off-by: Long <long0dai@foxmail.com>
Signed-off-by: Long <long.dai@intel.com>
2021-11-01 19:01:51 +05:30
Long Dai 4d75238be8
runtime: support unix domain socket (#788)
* runtime: support unix domain socket

Signed-off-by: Long <long.dai@intel.com>

* feedback

Signed-off-by: Long <long.dai@intel.com>

* update example

Signed-off-by: Long <long.dai@intel.com>
2021-10-27 13:45:34 -07:00
Long Dai 909b989128
log error info to stderr (#750)
Signed-off-by: Long Dai <long0dai@foxmail.com>

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-24 23:32:19 -07:00
Charlie Stanley ff73dabd02 Add some negative tests for invoke and publish 2021-04-09 12:46:53 -07:00
Charlie Stanley 70342fbb00 Add invoke --data-file option and e2e tests 2021-04-08 12:06:20 -07:00
Yaron Schneider 3ee9e53338
add renewed headers (#588) 2021-02-10 08:37:08 -08:00
Mukundan Sundararajan 51bbd0a171
updated help messages. provide example for commands. (#544) 2020-12-08 12:04:11 -08:00
Mukundan Sundararajan 2495648629
Make flags consistent across commands. (#541)
update help messages
2020-12-03 14:32:39 -08:00
Artur Souza 6a303e71f7
Rewording of help messages. (#501)
* Delete reference docs, since docs website has those now.

* Rewording of help messages.
2020-10-29 16:08:21 -07:00
Yaron Schneider 71c4525b2c
Refactor invoke and remove deprecated commands (#492)
* refactor invoke and remove deprecated commands

* fix lint

* fix lint

* add delete and put tests
2020-10-16 10:49:13 -07:00
Mukundan Sundararajan e2e592943f
Add UTs for publish and invoke (#477)
* Refactor publish, invoke and add tests

* remove process from interface

* address review comments

* rename invoke methods.
2020-10-09 19:03:39 -07:00
Mukundan Sundararajan 24ca35d78b
Upgrade to linter v1.31.0 (#447)
* Upgrade to linter v1.30.0

* Remove --fix from lint

* Fix linter issues

* use golang-ci lint action

* Fix linter version

* add linter patch version

* remove linter patch version
2020-10-07 17:24:12 -07:00
Vishal Saroopchand b327fdf118 Add InvokeGet and Post, refactor Invoke. (#229) 2020-01-11 21:17:49 -08:00
Greg Ingram e759a815ed Capitalized Dapr and uppercase CLI (#215)
* Capitalized Dapr

* Fixed wording

* Uppercase CLI

* Missed capitalized Dapr

* Fix uninstall description
2019-11-25 09:37:45 -08:00
Yaron Schneider eeea3d5a1b
change send cmd to invoke (#211) 2019-11-20 16:22:41 -08:00