From 6c796b6477432dab9377dbe5099108ab40db97a4 Mon Sep 17 00:00:00 2001 From: Myron Date: Wed, 4 Mar 2020 11:15:19 +0800 Subject: [PATCH 1/3] fix documenttation --- doc/private_endpoint_connection_command_guideline.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private_endpoint_connection_command_guideline.md b/doc/private_endpoint_connection_command_guideline.md index f64b43661bc..27c9953a925 100644 --- a/doc/private_endpoint_connection_command_guideline.md +++ b/doc/private_endpoint_connection_command_guideline.md @@ -85,8 +85,8 @@ del namespace.connection_id #### Transform In order to transform the output of the `list` command, we provide a transform function `gen_dict_to_list_transform`. ``` -from azure.cli.core.command.transform import gen_dict_to_list_transform -g.command('list', transform=gen_dict_to_list_transform(key='values')) +from azure.cli.core.commands.transform import gen_dict_to_list_transform +g.command('list', transform=gen_dict_to_list_transform(key='values')) # defalut key is `value` ``` #### Test From 21fd75e30535851cb23ee755235a5e675d22cf71 Mon Sep 17 00:00:00 2001 From: Myron Date: Wed, 4 Mar 2020 11:18:04 +0800 Subject: [PATCH 2/3] modify the sentence --- doc/private_endpoint_connection_command_guideline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/private_endpoint_connection_command_guideline.md b/doc/private_endpoint_connection_command_guideline.md index 27c9953a925..a873b19ebb2 100644 --- a/doc/private_endpoint_connection_command_guideline.md +++ b/doc/private_endpoint_connection_command_guideline.md @@ -83,7 +83,7 @@ namespace.name = result['child_name_1'] del namespace.connection_id ``` #### Transform -In order to transform the output of the `list` command, we provide a transform function `gen_dict_to_list_transform`. +In order to transform the output of the `list` command, we provide a transform function `gen_dict_to_list_transform`. The key's value depend on each service's response. ``` from azure.cli.core.commands.transform import gen_dict_to_list_transform g.command('list', transform=gen_dict_to_list_transform(key='values')) # defalut key is `value` From 232d534188fe7f4b3ba5780cec5b01ee92c6e373 Mon Sep 17 00:00:00 2001 From: Myron Date: Wed, 4 Mar 2020 11:18:43 +0800 Subject: [PATCH 3/3] fix typo --- doc/private_endpoint_connection_command_guideline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/private_endpoint_connection_command_guideline.md b/doc/private_endpoint_connection_command_guideline.md index a873b19ebb2..31972e326da 100644 --- a/doc/private_endpoint_connection_command_guideline.md +++ b/doc/private_endpoint_connection_command_guideline.md @@ -83,7 +83,7 @@ namespace.name = result['child_name_1'] del namespace.connection_id ``` #### Transform -In order to transform the output of the `list` command, we provide a transform function `gen_dict_to_list_transform`. The key's value depend on each service's response. +In order to transform the output of the `list` command, we provide a transform function `gen_dict_to_list_transform`. The key's value depends on each service's response. ``` from azure.cli.core.commands.transform import gen_dict_to_list_transform g.command('list', transform=gen_dict_to_list_transform(key='values')) # defalut key is `value`