From a7bb0b52c4b99a1bb6e4fdaf7196b6a656ae72c2 Mon Sep 17 00:00:00 2001 From: ktr Date: Sun, 25 Jul 2021 00:27:27 +0900 Subject: [PATCH] bump to v0.10.0 (#449) --- README.md | 23 ++++++++++++++++++- ...and_local_config_are_not_found.golden.toml | 2 +- ...este2e_cli-print_call_command_usage.golden | 2 +- ...este2e_cli-print_desc_command_usage.golden | 2 +- ...este2e_cli-print_list_command_usage.golden | 2 +- ..._cli-print_usage_text_to_the_writer.golden | 2 +- ...ge_text_to_the_writer_(common_flag).golden | 2 +- meta/meta.go | 2 +- 8 files changed, 29 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9103f2dc..9dfc891b 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ So, you can format it by any commands like `jq`. Also, if you want to use the sa - [Bidirectional streaming RPC](#bidirectional-streaming-rpc) - [Skip the rest of fields](#skip-the-rest-of-fields) - [Enriched response](#enriched-response) + - [Repeat the previous call](#repeat-the-previous-call) - [Usage (CLI)](#usage-cli) - [Basic usage](#basic-usage-1) - [Repeated fields](#repeated-fields-1) @@ -233,7 +234,9 @@ You can input some values and finish with CTRL-D ### Enum fields You can select one from the proposed selections. -To abort it, input CTRL-C. +When CTRL-C is entered, default value 0 will be used. +When CTRL-D is entered, inputting will be aborted. + ``` > call UnaryEnum ? UnaryEnumRequest [Use arrows to move, type to filter] @@ -409,6 +412,24 @@ number: 0 message: "" ``` +### Repeat the previous call +With `--repeat` option, you can repeat the previous call with the same input. +Note that Client/Bidirectional streaming RPC is not supported. + +``` +> call Unary +name (TYPE_STRING) => ktr +{ + "message": "hello, ktr" +} + +> call --repeat Unary +name (TYPE_STRING) => ktr +{ + "message": "hello, ktr" +} +``` + ## Usage (CLI) ### Basic usage CLI mode also has some commands. diff --git a/config/testdata/fixtures/create_a_default_global_config_if_both_of_global_and_local_config_are_not_found.golden.toml b/config/testdata/fixtures/create_a_default_global_config_if_both_of_global_and_local_config_are_not_found.golden.toml index 29d668ab..e426683b 100644 --- a/config/testdata/fixtures/create_a_default_global_config_if_both_of_global_and_local_config_are_not_found.golden.toml +++ b/config/testdata/fixtures/create_a_default_global_config_if_both_of_global_and_local_config_are_not_found.golden.toml @@ -10,7 +10,7 @@ [meta] autoupdate = false - configversion = "0.9.3" + configversion = "0.10.0" updatelevel = "patch" [repl] diff --git a/e2e/testdata/fixtures/teste2e_cli-print_call_command_usage.golden b/e2e/testdata/fixtures/teste2e_cli-print_call_command_usage.golden index 2a897ba2..d92e76ae 100644 --- a/e2e/testdata/fixtures/teste2e_cli-print_call_command_usage.golden +++ b/e2e/testdata/fixtures/teste2e_cli-print_call_command_usage.golden @@ -1,4 +1,4 @@ -evans 0.9.3 +evans 0.10.0 Usage: evans [global options ...] cli call [options ...] diff --git a/e2e/testdata/fixtures/teste2e_cli-print_desc_command_usage.golden b/e2e/testdata/fixtures/teste2e_cli-print_desc_command_usage.golden index 96f4bec9..8fe80d87 100644 --- a/e2e/testdata/fixtures/teste2e_cli-print_desc_command_usage.golden +++ b/e2e/testdata/fixtures/teste2e_cli-print_desc_command_usage.golden @@ -1,4 +1,4 @@ -evans 0.9.3 +evans 0.10.0 Usage: evans [global options ...] cli desc [options ...] [symbol] diff --git a/e2e/testdata/fixtures/teste2e_cli-print_list_command_usage.golden b/e2e/testdata/fixtures/teste2e_cli-print_list_command_usage.golden index c7a3ee5e..54ad888e 100644 --- a/e2e/testdata/fixtures/teste2e_cli-print_list_command_usage.golden +++ b/e2e/testdata/fixtures/teste2e_cli-print_list_command_usage.golden @@ -1,4 +1,4 @@ -evans 0.9.3 +evans 0.10.0 Usage: evans [global options ...] cli list [options ...] [fully-qualified service/method name] diff --git a/e2e/testdata/fixtures/teste2e_cli-print_usage_text_to_the_writer.golden b/e2e/testdata/fixtures/teste2e_cli-print_usage_text_to_the_writer.golden index 1a73378a..1d35b699 100644 --- a/e2e/testdata/fixtures/teste2e_cli-print_usage_text_to_the_writer.golden +++ b/e2e/testdata/fixtures/teste2e_cli-print_usage_text_to_the_writer.golden @@ -1,4 +1,4 @@ -evans 0.9.3 +evans 0.10.0 Usage: evans [global options ...] cli diff --git a/e2e/testdata/fixtures/teste2e_cli-print_usage_text_to_the_writer_(common_flag).golden b/e2e/testdata/fixtures/teste2e_cli-print_usage_text_to_the_writer_(common_flag).golden index 1a73378a..1d35b699 100644 --- a/e2e/testdata/fixtures/teste2e_cli-print_usage_text_to_the_writer_(common_flag).golden +++ b/e2e/testdata/fixtures/teste2e_cli-print_usage_text_to_the_writer_(common_flag).golden @@ -1,4 +1,4 @@ -evans 0.9.3 +evans 0.10.0 Usage: evans [global options ...] cli diff --git a/meta/meta.go b/meta/meta.go index 5b1f76c2..4d7ee3ea 100644 --- a/meta/meta.go +++ b/meta/meta.go @@ -5,5 +5,5 @@ import version "github.com/hashicorp/go-version" const AppName = "evans" var ( - Version = version.Must(version.NewSemver("0.9.3")) + Version = version.Must(version.NewSemver("0.10.0")) )