Commit Graph

67 Commits

Author SHA1 Message Date
Yonathan Randolph a985978d82
grpc_cli: allow multiple colon-separated paths in --proto_path (#24187)
Co-authored-by: Yash Tibrewal <yashkt@google.com>
Co-authored-by: AJ Heller <hork@google.com>
2021-03-12 16:52:48 -08:00
Esun Kim ec0b88a5d7 Fix google-readability-casting 2020-11-30 17:27:51 -08:00
capstan 131579d52d Roll forward of commit 7883b51: Use abseil's flags in tests.
This replaces gflags. Added TODOs where use of `absl::Duration` or `absl::FlagSaver` might be preferred in follow-up cleanup. Fixes #24493.

This reverts commit da66b7d14e.

NEW:
* Adds references to `absl/flags/declare.h`, new to LTS 2020923.2 imported in commit 5b43440.
* Works around MSVC 2017 compiler error with large help text on flags by reducing the help text.
2020-11-06 16:07:19 +01:00
Parveen Kumar ec08d77474 Specify a large value for max metadata size in grpc_cli client channel.
This is useful in cases where server sends back large stacktrace and
default value of 8192 isn't enough.
2020-10-29 13:36:46 -07:00
Nathan Herring da66b7d14e
Revert "Abseil Flags" 2020-10-24 15:19:55 -07:00
capstan 7883b5133d Use abseil's flags in tests.
This replaces gflags. Added TODOs where use of `absl::Duration` or `absl::FlagSaver` might be preferred in follow-up cleanup. Fixes #24493.
2020-10-23 19:36:33 +02:00
Esun Kim 6ae8463500 Fix by modernize-make-unique 2020-10-16 13:30:56 -07:00
Esun Kim 6d6648c7e1 Fix clang-tidy errors 2020-10-13 09:51:31 -07:00
Alisha Nanda 91627677fd
Added timeout flag to grpc cli. 2020-09-14 17:00:45 +00:00
Alisha Nanda a3ef19c1f0
Revert "Add timeout flag to gRPC cli" 2020-09-09 18:32:27 -07:00
Alisha Nanda 4282e968c4
Re-add in all changes, fix check failures. 2020-09-03 04:01:22 +00:00
Alisha Nanda a4eedc1510 Revert "Merge branch 'master' of https://github.com/ananda1066/grpc"
This reverts commit 35e0e96b09, reversing
changes made to b78bc85185.
2020-09-03 01:57:03 +00:00
Alisha Nanda 88d99b4603 Add timeout flag to gRPC cli
Signed-off-by: Alisha Nanda <alishananda@google.com>
2020-09-01 22:10:35 +00:00
Alexander Polcyn f57879ac56 Flag protect new logs 2020-07-22 21:22:05 -07:00
Alexander Polcyn 4bdbd4caef Log the peer address of grpc_cli CallMethod RPCs to stderr 2020-07-20 18:18:42 -07:00
Esun Kim 165ee5007a Replaced grpc::string with std::string 2020-06-29 17:56:36 -07:00
Alexander Polcyn 0a452b9d19 Allow configuring default service configs in grpc_cli 2020-06-02 10:51:29 -07:00
Vijay Pai 53e19e8de2 Remove unused parameter warning (20 of 20) 2019-10-17 08:52:15 -07:00
Andrew Scherkus 4bf0048194 Document --noremotedb flag for grpc_cli.
It's surprising that grpc_cli always attempts to use the reflection
service even when providing local proto files. Document the
existence of a flag that surpresses this behavior.
2019-07-16 13:14:28 -04:00
Karthik Ravi Shankar 5274deb32b Fix the rebase and build 2019-04-23 14:12:48 -07:00
Karthik Ravi Shankar e57182ab61 Fix the compile errors for tests and namespace. 2019-04-23 14:00:56 -07:00
xtao 7766912dda
fix more detected mu/cv leaks 2019-02-16 00:00:50 +08:00
Yang Gao 6bfb966271
Revert "Revert "grpc_cli json support"" 2018-10-16 15:49:46 -07:00
David G. Quintas a464b4ce39
Revert "grpc_cli json support" 2018-10-16 14:42:37 -07:00
Feso 00bb2a035e Reformatted code as per clang-format 2018-10-16 00:14:09 +01:00
Feso 29c131f790 Refactored based on code review 2018-10-13 19:17:26 +01:00
Feso 44cecbb2f7 grpc_cli json support 2018-10-03 00:50:57 +01:00
Nathan Herring c7fae8812f clang tidy 2018-07-19 23:45:46 +02:00
Nathan Herring 3ed81c8d65 Introduce --ssl_target flag to grpc_cli.
This allows the client to specify the host name of the remote server for the purposes of TLS certificate validation, useful for test certificates and machines with ephemeral IP
addresses with no associated DNS entries that have been assigned TLS certificates.
2018-07-19 18:30:27 +02:00
Yang Gao 045e4f9889
Merge pull request #13796 from y-zeng/cli_token
Report more error messages in grpc_cli
2018-06-08 11:41:01 -07:00
Vijay Pai c90a85649b Change grpc++ references in names to grpcpp 2018-03-08 22:04:59 -08:00
Carlos Valera efce74b525 Print trailing metadata in the "grpc_cli call" command.
This often includes important debugging information when the RPC returns
a non-OK status.
2018-02-21 16:03:00 -08:00
Yuchen Zeng 33aaffa639
clang_format 2017-12-15 11:03:50 -08:00
Yuchen Zeng 6ac62118b7 Report more error messages in grpc_cli 2017-12-14 19:12:42 -08:00
Yuchen Zeng 19889d79e4 Add escape sequences for the grpc_cli metadata flag 2017-12-11 20:58:12 -08:00
Craig Tiller e31e200dec Fix after merge 2017-11-13 14:04:47 -08:00
Craig Tiller 4ac2b8e585 Enable clang-tidy as a sanity check, fix up all known failures 2017-11-10 14:14:17 -08:00
Yuchen Zeng 5dd2f48e24 Fix windows build 2017-09-29 14:52:33 -07:00
Yuchen Zeng b5eaf7734c gRPC CLI batch mode 2017-09-29 14:51:10 -07:00
yang-g 32e1678327 Still create channel if remotedb is false. Just do not use it in the file parsing 2017-06-19 17:01:30 -07:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Alena Varkockova 7b9cb834ff Print out some cli error message for getservices
Currently, when you cann grpc_cli ls on an endpoint that does not have service reflection, the cli just silently ends without printing out any error or message.

This PR should fix that.
2017-04-02 22:02:09 +02:00
Jan Tattermusch bd0b0546a6 windows compilation fixes 2017-02-02 00:01:09 +01:00
Yuchen Zeng 8d2d70ca99 Support bidirectional stream RPC
Add bidistream test

Add bad request tests

Replace deprecated DynamicMessageFactory constructor
2017-01-30 14:31:24 -08:00
Yuchen Zeng d37f642f35 Support server streaming
Skip unparsable input

Add tests for uni-directional stream calls

Simplify client stream handling
2016-12-15 16:10:37 -08:00
Yuchen Zeng f9329217b1 Support client streaming 2016-12-15 15:54:39 -08:00
Yuchen Zeng a84cdb8c81 Add parse, tobinary, totext commands 2016-12-14 15:41:18 -08:00
yang-g 6c8de363ca Use user provided method name when using binary files in cli 2016-12-08 23:05:50 -08:00
Yuchen Zeng a4aebf873e Remove unused inclusion 2016-09-28 13:20:18 -07:00
Yuchen Zeng 84d55b30cc clang-format 2016-09-21 16:19:20 -07:00