Skip to content
代码片段 群组 项目
提交 6a991c88 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic
浏览文件

Commit the helper baseline.

上级 0b43a39f
No related branches found
No related tags found
无相关合并请求
......@@ -49,7 +49,8 @@
"linuxpack-ui": "./dist/linux-unpacked/zap --zclProperties zcl-builtin/silabs/zcl-test.properties --genTemplateJson test/gen-template/zigbee/gen-templates.json",
"linuxpack-check": "./dist/linux-unpacked/zap selfCheck --zclProperties zcl-builtin/silabs/zcl-test.properties --genTemplateJson test/gen-template/zigbee/gen-templates.json",
"linuxpack-gen": "./dist/linux-unpacked/zap generate --noUi --noServer --zclProperties zcl-builtin/silabs/zcl-test.properties --genTemplateJson test/gen-template/zigbee/gen-templates.json --output tmp",
"linuxpack-help": "./dist/linux-unpacked/zap -?"
"linuxpack-help": "./dist/linux-unpacked/zap -?",
"helper-api-baseline": "node src-script/gen-helper-api.js"
},
"dependencies": {
"axios": "^0.20.0",
......
#!/usr/bin/env node
/**
*
* Copyright (c) 2020 Silicon Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const templateEngine = require('../src-electron/generator/template-engine.js')
const fs = require('fs')
var helpers = templateEngine.allGlobalHelpers()
var ar = []
for (const key in helpers) {
ar.push({ name: key, isDeprecated: helpers[key].isDeprecated })
}
ar.sort((a, b) => a.name.localeCompare(b.name))
var json = JSON.stringify(ar)
fs.writeFileSync('test/helper-api-baseline.json', json)
[
{ "name": "add_one" },
{ "name": "add_to_accumulator" },
{ "name": "addOne", "isDeprecated": true },
{ "name": "addToAccumulator", "isDeprecated": true },
{ "name": "after" },
{ "name": "all_user_cluster_commands" },
{ "name": "all_user_clusters" },
{ "name": "all_user_clusters_names" },
{ "name": "as_bytes" },
{ "name": "as_camel_cased" },
{ "name": "as_cli_type" },
{ "name": "as_delimited_macro" },
{ "name": "as_hex" },
{ "name": "as_last_word" },
{ "name": "as_offset" },
{ "name": "as_spaced_lowercase" },
{ "name": "as_symbol" },
{ "name": "as_type" },
{ "name": "as_underlying_type" },
{ "name": "as_underlying_zcl_type" },
{ "name": "as_underscore_lowercase" },
{ "name": "as_underscore_uppercase" },
{ "name": "asBytes", "isDeprecated": true },
{ "name": "asCamelCased", "isDeprecated": true },
{ "name": "asCliType", "isDeprecated": true },
{ "name": "asDelimitedMacro", "isDeprecated": true },
{ "name": "asHex", "isDeprecated": true },
{ "name": "asLastWord", "isDeprecated": true },
{ "name": "asOffset", "isDeprecated": true },
{ "name": "asSpacedLowercase", "isDeprecated": true },
{ "name": "asSymbol", "isDeprecated": true },
{ "name": "asType", "isDeprecated": true },
{ "name": "asUnderlyingType", "isDeprecated": true },
{ "name": "asUnderlyingZclType", "isDeprecated": true },
{ "name": "asUnderscoreLowercase", "isDeprecated": true },
{ "name": "asUnderscoreUppercase", "isDeprecated": true },
{ "name": "attribute_extension" },
{ "name": "cleanse_label" },
{ "name": "cleanse_label_as_kebab_case" },
{ "name": "cleanseLabel", "isDeprecated": true },
{ "name": "cleanseLabelAsKebabCase", "isDeprecated": true },
{ "name": "cluster_extension" },
{ "name": "command_extension" },
{ "name": "data_type_for_bitmap" },
{ "name": "data_type_for_enum" },
{ "name": "dataTypeForBitmap", "isDeprecated": true },
{ "name": "dataTypeForEnum", "isDeprecated": true },
{ "name": "device_type_extension" },
{ "name": "endpoint_attribute_count" },
{ "name": "endpoint_attribute_list" },
{ "name": "endpoint_attribute_long_defaults" },
{ "name": "endpoint_attribute_manufacturer_code_count" },
{ "name": "endpoint_attribute_manufacturer_codes" },
{ "name": "endpoint_attribute_min_max_count" },
{ "name": "endpoint_attribute_min_max_list" },
{ "name": "endpoint_cluster_count" },
{ "name": "endpoint_cluster_list" },
{ "name": "endpoint_cluster_manufacturer_code_count" },
{ "name": "endpoint_cluster_manufacturer_codes" },
{ "name": "endpoint_command_count" },
{ "name": "endpoint_command_list" },
{ "name": "endpoint_command_manufacturer_code_count" },
{ "name": "endpoint_command_manufacturer_codes" },
{ "name": "endpoint_config" },
{ "name": "endpoint_count" },
{ "name": "endpoint_fixed_device_id_array" },
{ "name": "endpoint_fixed_device_version_array" },
{ "name": "endpoint_fixed_endpoint_array" },
{ "name": "endpoint_fixed_endpoint_type_array" },
{ "name": "endpoint_fixed_network_array" },
{ "name": "endpoint_fixed_profile_id_array" },
{ "name": "endpoint_largest_attribute_size" },
{ "name": "endpoint_reporting_config_default_count" },
{ "name": "endpoint_reporting_config_defaults" },
{ "name": "endpoint_singletons_size" },
{ "name": "endpoint_total_storage_size" },
{ "name": "endpoint_type_count" },
{ "name": "endpoint_types_list" },
{ "name": "first" },
{ "name": "format_value" },
{ "name": "formatValue", "isDeprecated": true },
{ "name": "ident" },
{ "name": "if_command_arguments_exist" },
{ "name": "if_manufacturing_specific_cluster" },
{ "name": "is_bitmap" },
{ "name": "is_client" },
{ "name": "is_command_available" },
{ "name": "is_enabled" },
{ "name": "is_enum" },
{ "name": "is_equal" },
{ "name": "is_first_element" },
{ "name": "is_last_element" },
{ "name": "is_server" },
{ "name": "is_str_equal" },
{ "name": "is_struct" },
{ "name": "isBitmap", "isDeprecated": true },
{ "name": "isClient", "isDeprecated": true },
{ "name": "isCommandAvailable", "isDeprecated": true },
{ "name": "isEnabled", "isDeprecated": true },
{ "name": "isEnum", "isDeprecated": true },
{ "name": "isEqual", "isDeprecated": true },
{ "name": "isFirstElement", "isDeprecated": true },
{ "name": "isLastElement", "isDeprecated": true },
{ "name": "isServer", "isDeprecated": true },
{ "name": "isStrEqual", "isDeprecated": true },
{ "name": "isStruct", "isDeprecated": true },
{ "name": "iterate" },
{ "name": "iterate_accumulator" },
{ "name": "iterateAccumulator", "isDeprecated": true },
{ "name": "last" },
{ "name": "middle" },
{ "name": "not_last" },
{ "name": "template_option_with_code" },
{ "name": "template_options" },
{ "name": "toggle" },
{ "name": "trim_string" },
{ "name": "user_all_attributes" },
{ "name": "user_cluster_attributes" },
{ "name": "user_cluster_command_count_with_cli" },
{ "name": "user_cluster_commands" },
{ "name": "user_cluster_commands_all_endpoints" },
{ "name": "user_cluster_has_enabled_command" },
{ "name": "user_clusters" },
{ "name": "user_endpoint_count_by_cluster" },
{ "name": "user_endpoint_type_count" },
{ "name": "user_endpoint_types" },
{ "name": "zap_header" },
{ "name": "zcl_atomics" },
{ "name": "zcl_attributes" },
{ "name": "zcl_attributes_client" },
{ "name": "zcl_attributes_server" },
{ "name": "zcl_bitmap_items" },
{ "name": "zcl_bitmaps" },
{ "name": "zcl_cluster_largest_label_length" },
{ "name": "zcl_clusters" },
{ "name": "zcl_command_argument_data_type" },
{ "name": "zcl_command_arguments" },
{ "name": "zcl_command_arguments_count" },
{ "name": "zcl_command_tree" },
{ "name": "zcl_commands" },
{ "name": "zcl_device_types" },
{ "name": "zcl_enum_items" },
{ "name": "zcl_enums" },
{ "name": "zcl_global_commands" },
{ "name": "zcl_struct_items" },
{ "name": "zcl_structs" }
]
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册