Skip to content

Commit

Permalink
shared use of commander between homebridge and UI
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Apr 27, 2024
1 parent 3028e80 commit b919f3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.

## v4.56.2 (2024-04-27)

### Fixed

- shared use of `commander` between homebridge and UI

### Other Changes

- Prepare for tags with prefex of `v`
- Prepare for tags with prefix of `v`
- Update Discord Webhook
- Update Pre Release Process

Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { fork } from 'child_process';
import { resolve } from 'path';
import { program } from 'commander';
import { Command } from 'commander';
import { satisfies } from 'semver';

let homebridge: any;
Expand All @@ -19,6 +19,7 @@ class HomebridgeConfigUi {
process.env.UIX_STORAGE_PATH = homebridge.user.storagePath();
process.env.UIX_PLUGIN_NAME = config.name || 'homebridge-config-ui-x';

const program = new Command();
program
.allowUnknownOption()
.option('-P, --plugin-path [path]', '', (p) => process.env.UIX_CUSTOM_PLUGIN_PATH = p)
Expand Down

0 comments on commit b919f3c

Please sign in to comment.