This commit is contained in:
Qiaoqiao Zhang 2020-11-06 16:59:00 +08:00 коммит произвёл GitHub
Родитель 709089d65c
Коммит 56c7edeaf6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 43 добавлений и 37 удалений

Просмотреть файл

@ -171,6 +171,10 @@ export class AzNamer {
if (extensionName == '' || extensionName == undefined) {
this.session.message({ Channel: Channel.Error, Text: "probably missing readme.az.md possible settings are:\naz:\n extensions: managed-network\n namespace: azure.mgmt.managednetwork\n package-name: azure-mgmt-managednetwork\npython-sdk-output-folder: \"$(output-folder)/src/managed-network/azext_managed_network/vendored_sdks/managed-network\"\n" })
}
if (!isNullOrUndefined(azSettings['parent-extension'])) {
extensionName = azSettings['parent-extension'].trim() + " " + extensionName.trim();
}
this.codeModel.operationGroups.forEach(operationGroup => {
let operationGroupName = "";
if (!isNullOrUndefined(operationGroup.language['cli'])) {

Просмотреть файл

@ -5,6 +5,7 @@ These settings apply only when `--az` is specified on the command line.
``` yaml $(az)
az:
extensions: boolean
parent-extension: test-server
package-name: azure-mgmt-boolean
namespace: azure.mgmt.boolean
client-subscription-bound: false

Просмотреть файл

@ -8,4 +8,4 @@ az extension add --name boolean
```
### Included Features ###
#### boolean bool ####
#### test-server boolean bool ####

Просмотреть файл

@ -12,37 +12,37 @@
from knack.help_files import helps
helps['boolean bool'] = """
helps['test-server boolean bool'] = """
type: group
short-summary: boolean bool
short-summary: test-server boolean bool
"""
helps['boolean bool get-false'] = """
helps['test-server boolean bool get-false'] = """
type: command
short-summary: "Get false Boolean value."
"""
helps['boolean bool get-invalid'] = """
helps['test-server boolean bool get-invalid'] = """
type: command
short-summary: "Get invalid Boolean value."
"""
helps['boolean bool get-null'] = """
helps['test-server boolean bool get-null'] = """
type: command
short-summary: "Get null Boolean value."
"""
helps['boolean bool get-true'] = """
helps['test-server boolean bool get-true'] = """
type: command
short-summary: "Get true Boolean value."
"""
helps['boolean bool put-false'] = """
helps['test-server boolean bool put-false'] = """
type: command
short-summary: "Set Boolean value false."
"""
helps['boolean bool put-true'] = """
helps['test-server boolean bool put-true'] = """
type: command
short-summary: "Set Boolean value true."
"""

Просмотреть файл

@ -19,10 +19,11 @@ def load_command_table(self, _):
boolean_bool = CliCommandType(
operations_tmpl='azext_boolean.vendored_sdks.boolean.operations._bool_operations#BoolOperations.{}',
client_factory=cf_bool)
with self.command_group('boolean bool', boolean_bool, client_factory=cf_bool, is_experimental=True) as g:
g.custom_command('get-false', 'boolean_bool_get_false')
g.custom_command('get-invalid', 'boolean_bool_get_invalid')
g.custom_command('get-null', 'boolean_bool_get_null')
g.custom_command('get-true', 'boolean_bool_get_true')
g.custom_command('put-false', 'boolean_bool_put_false')
g.custom_command('put-true', 'boolean_bool_put_true')
with self.command_group('test-server boolean bool', boolean_bool, client_factory=cf_bool,
is_experimental=True) as g:
g.custom_command('get-false', 'test_server_boolean_bool_get_false')
g.custom_command('get-invalid', 'test_server_boolean_bool_get_invalid')
g.custom_command('get-null', 'test_server_boolean_bool_get_null')
g.custom_command('get-true', 'test_server_boolean_bool_get_true')
g.custom_command('put-false', 'test_server_boolean_bool_put_false')
g.custom_command('put-true', 'test_server_boolean_bool_put_true')

Просмотреть файл

@ -10,25 +10,25 @@
# pylint: disable=too-many-lines
def boolean_bool_get_false(client):
def test_server_boolean_bool_get_false(client):
return client.get_false()
def boolean_bool_get_invalid(client):
def test_server_boolean_bool_get_invalid(client):
return client.get_invalid()
def boolean_bool_get_null(client):
def test_server_boolean_bool_get_null(client):
return client.get_null()
def boolean_bool_get_true(client):
def test_server_boolean_bool_get_true(client):
return client.get_true()
def boolean_bool_put_false(client):
def test_server_boolean_bool_put_false(client):
return client.put_false()
def boolean_bool_put_true(client):
def test_server_boolean_bool_put_true(client):
return client.put_true()

Просмотреть файл

@ -9,49 +9,49 @@
### <a name="CommandGroups">Command groups in `az boolean` extension </a>
|CLI Command Group|Group Swagger name|Commands|
|---------|------------|--------|
|az boolean bool|bool|[commands](#CommandsInbool)|
|az test-server boolean bool|bool|[commands](#CommandsInbool)|
## COMMANDS
### <a name="CommandsInbool">Commands in `az boolean bool` group</a>
### <a name="CommandsInbool">Commands in `az test-server boolean bool` group</a>
|CLI Command|Operation Swagger name|Parameters|Examples|
|---------|------------|--------|-----------|
|[az boolean bool get-false](#boolgetFalse)|getFalse|[Parameters](#ParametersboolgetFalse)|Not Found|
|[az boolean bool get-invalid](#boolgetInvalid)|getInvalid|[Parameters](#ParametersboolgetInvalid)|Not Found|
|[az boolean bool get-null](#boolgetNull)|getNull|[Parameters](#ParametersboolgetNull)|Not Found|
|[az boolean bool get-true](#boolgetTrue)|getTrue|[Parameters](#ParametersboolgetTrue)|Not Found|
|[az boolean bool put-false](#boolputFalse)|putFalse|[Parameters](#ParametersboolputFalse)|Not Found|
|[az boolean bool put-true](#boolputTrue)|putTrue|[Parameters](#ParametersboolputTrue)|Not Found|
|[az test-server boolean bool get-false](#boolgetFalse)|getFalse|[Parameters](#ParametersboolgetFalse)|Not Found|
|[az test-server boolean bool get-invalid](#boolgetInvalid)|getInvalid|[Parameters](#ParametersboolgetInvalid)|Not Found|
|[az test-server boolean bool get-null](#boolgetNull)|getNull|[Parameters](#ParametersboolgetNull)|Not Found|
|[az test-server boolean bool get-true](#boolgetTrue)|getTrue|[Parameters](#ParametersboolgetTrue)|Not Found|
|[az test-server boolean bool put-false](#boolputFalse)|putFalse|[Parameters](#ParametersboolputFalse)|Not Found|
|[az test-server boolean bool put-true](#boolputTrue)|putTrue|[Parameters](#ParametersboolputTrue)|Not Found|
## COMMAND DETAILS
### group `az boolean bool`
#### <a name="boolgetFalse">Command `az boolean bool get-false`</a>
### group `az test-server boolean bool`
#### <a name="boolgetFalse">Command `az test-server boolean bool get-false`</a>
##### <a name="ParametersboolgetFalse">Parameters</a>
|Option|Type|Description|Path (SDK)|Swagger name|
|------|----|-----------|----------|------------|
#### <a name="boolgetInvalid">Command `az boolean bool get-invalid`</a>
#### <a name="boolgetInvalid">Command `az test-server boolean bool get-invalid`</a>
##### <a name="ParametersboolgetInvalid">Parameters</a>
|Option|Type|Description|Path (SDK)|Swagger name|
|------|----|-----------|----------|------------|
#### <a name="boolgetNull">Command `az boolean bool get-null`</a>
#### <a name="boolgetNull">Command `az test-server boolean bool get-null`</a>
##### <a name="ParametersboolgetNull">Parameters</a>
|Option|Type|Description|Path (SDK)|Swagger name|
|------|----|-----------|----------|------------|
#### <a name="boolgetTrue">Command `az boolean bool get-true`</a>
#### <a name="boolgetTrue">Command `az test-server boolean bool get-true`</a>
##### <a name="ParametersboolgetTrue">Parameters</a>
|Option|Type|Description|Path (SDK)|Swagger name|
|------|----|-----------|----------|------------|
#### <a name="boolputFalse">Command `az boolean bool put-false`</a>
#### <a name="boolputFalse">Command `az test-server boolean bool put-false`</a>
##### <a name="ParametersboolputFalse">Parameters</a>
|Option|Type|Description|Path (SDK)|Swagger name|
|------|----|-----------|----------|------------|
#### <a name="boolputTrue">Command `az boolean bool put-true`</a>
#### <a name="boolputTrue">Command `az test-server boolean bool put-true`</a>
##### <a name="ParametersboolputTrue">Parameters</a>
|Option|Type|Description|Path (SDK)|Swagger name|