Skip to content

Commit

Permalink
Add router, utils commands. Remove menus better suited for `utils…
Browse files Browse the repository at this point in the history
…` command.
  • Loading branch information
Nerivec committed Jul 7, 2024
1 parent 9681351 commit 19f18d3
Show file tree
Hide file tree
Showing 15 changed files with 3,840 additions and 1,487 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"extends": ["oclif", "oclif-typescript", "prettier"],
"rules": {
"complexity": ["warn", 25],
"max-params": ["error", 10],
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-event-target": "off",
"no-bitwise": "off",
Expand Down
62 changes: 58 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Interact with EmberZNet-based adapters using zigbee-herdsman 'ember' driver
- Backup network
- Restore network
- Leave network
- Get NVM3 tokens info (details of what Backup saves)
- Backup NVM3 tokens
- Restore NVM3 tokens
- Reset NVM3 tokens
Expand All @@ -38,6 +37,25 @@ Interact with EmberZNet-based adapters using zigbee-herdsman 'ember' driver
- Clear NVM3
- Exit bootloader

#### Router

- Join network
- Rejoin network
- Leave network
- Backup NVM3 tokens
- Restore NVM3 tokens
- Reset NVM3 tokens
- Get network info
- Set manufacturer code
- Read counters
- Ping coordinator
- Reload custom event handlers
- Run custom script

#### Utils

- Parse NVM3 tokens backup file

# ToC

<!-- toc -->
Expand All @@ -52,7 +70,7 @@ $ npm install -g ember-zli
$ ember-zli COMMAND
running command...
$ ember-zli (--version)
ember-zli/2.0.2 win32-x64 node-v20.15.0
ember-zli/2.1.0 win32-x64 node-v20.15.0
$ ember-zli --help [COMMAND]
USAGE
$ ember-zli COMMAND
Expand All @@ -63,7 +81,9 @@ USAGE
<!-- commands -->
* [`ember-zli bootloader`](#ember-zli-bootloader)
* [`ember-zli help [COMMAND]`](#ember-zli-help-command)
* [`ember-zli router`](#ember-zli-router)
* [`ember-zli stack`](#ember-zli-stack)
* [`ember-zli utils`](#ember-zli-utils)
* [`ember-zli version`](#ember-zli-version)

## `ember-zli bootloader`
Expand All @@ -86,7 +106,7 @@ EXAMPLES
$ ember-zli bootloader
```

_See code: [src/commands/bootloader/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.0.2/src/commands/bootloader/index.ts)_
_See code: [src/commands/bootloader/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.0/src/commands/bootloader/index.ts)_

## `ember-zli help [COMMAND]`

Expand All @@ -108,6 +128,23 @@ DESCRIPTION

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.22/src/commands/help.ts)_

## `ember-zli router`

Use an NCP as a router and interact with the joined network.

```
USAGE
$ ember-zli router
DESCRIPTION
Use an NCP as a router and interact with the joined network.
EXAMPLES
$ ember-zli router
```

_See code: [src/commands/router/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.0/src/commands/router/index.ts)_

## `ember-zli stack`

Interact with the EmberZNet stack in the adapter.
Expand All @@ -123,7 +160,24 @@ EXAMPLES
$ ember-zli stack
```

_See code: [src/commands/stack/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.0.2/src/commands/stack/index.ts)_
_See code: [src/commands/stack/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.0/src/commands/stack/index.ts)_

## `ember-zli utils`

Execute various utility commands.

```
USAGE
$ ember-zli utils
DESCRIPTION
Execute various utility commands.
EXAMPLES
$ ember-zli utils
```

_See code: [src/commands/utils/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.0/src/commands/utils/index.ts)_

## `ember-zli version`

Expand Down
Loading

0 comments on commit 19f18d3

Please sign in to comment.