Skip to content

Commit c633832

Browse files
committed
chore: misc prep for release with ES modules, yargs, and nexe builds
1 parent 979fa2b commit c633832

13 files changed

+4114
-7054
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Change Log
22

3+
## 2.0.0
4+
5+
* All commands now have examples in their help (`smartthings <command> --help`).
6+
* args that require enum-like types are now case-insensitive. e.g. You can now list zigbee devices
7+
with `smartthings devices --type zigbee`.
8+
* The config file location is now determined by https://www.npmjs.com/package/env-paths[envPaths] library
9+
rather than oclif. A reasonable attempt has been made at finding the old config and copying it for
10+
the user so normally no change is needed other than making changes in the new file if necessary.
11+
The `config` command now displays the name of the configuration file.
12+
* Commands that take a capability specification on the command line now get the version from a flag
13+
rather than an argument. e.g. `smartthings capabilities myteam.myCapability --capability-version 1`
14+
instead of `smartthings capabilities myteam.myCapability 1`. Note that the version is always one,
15+
so this flag is not necessary at this time.
16+
* We now use ES modules.
17+
* We have migrated from oclif to yargs.
18+
319
## 1.10.5
420

521
### Patch Changes

README.md

Lines changed: 170 additions & 5721 deletions
Large diffs are not rendered by default.

doc/configuration.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
## Overview
44

5-
The default CLI configuration can be overridden by creating a YAML file called `config.yaml` in the
6-
following location:
5+
The default CLI configuration can be overridden by creating a YAML file called `config.yaml`. The
6+
location of this file varies by operating system. The easiest way to find it is to run `smartthings config`
7+
on your machine and the full filename will be listed.
78

8-
* `$HOME/.config/@smartthings/cli` on MacOS or Linux
9+
* `$HOME$/Library/Preferences/@smartthings/cli` on MacOS
10+
* `$HOME/.config/@smartthings/cli` on Linux
911
* `%LOCALAPPDATA%\@smartthings\cli` on Windows
1012

1113
## Profiles

0 commit comments

Comments
 (0)