forked from nrfconnect/sdk-connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90fb42e
commit 66d24b1
Showing
4 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
|
||
from pathlib import Path | ||
|
||
class ZapFinder: | ||
pass | ||
|
||
class ZapInstaller: | ||
INSTALL_DIR = Path('.zap-install') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
|
||
import argparse | ||
|
||
from pathlib import Path | ||
from textwrap import dedent | ||
|
||
from west.commands import WestCommand | ||
|
||
class ZapGui(WestCommand): | ||
|
||
def __init__(self): | ||
super().__init__( | ||
'zap-gui', | ||
'Run Matter ZCL Advanced Platform (ZAP) GUI', | ||
dedent(''' | ||
Run Matter ZCL Advanced Platform (ZAP) GUI. | ||
The ZAP GUI in a node.js tool for configuring the data model | ||
of a Matter application, which defines which clusters, commands, | ||
attributes and events are enabled for the given application.''')) | ||
|
||
def do_add_parser(self, parser_adder): | ||
parser = parser_adder.add_parser( | ||
self.name, help=self.help, | ||
formatter_class=argparse.RawDescriptionHelpFormatter, | ||
description=self.description) | ||
parser.add_argument('-z', '--zap-file', type=Path, | ||
help='Path to data model configuration file (*.zap)') | ||
parser.add_argument('-j', '--zcl-json', type=Path, | ||
help='Path to data model definition file (zcl.json)') | ||
return parser | ||
|
||
def do_run(self, args: argparse.Namespace, unknown_args: list[str]): | ||
pass |