Skip to content

Commit

Permalink
chore: remove meow, it is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Feb 6, 2024
1 parent 3539102 commit 23278de
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 171 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"koa-body": "^6.0.1",
"koa-router": "^12.0.1",
"koa-static": "^5.0.0",
"meow": "^9.0.0",
"node-hid": "^3.0.0",
"semver": "^7.6.0",
"tslib": "^2.6.2",
Expand Down
8 changes: 8 additions & 0 deletions pi-image/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ yarn
# build typescript
yarn build

# build webui
cd webui
yarn
yarn build

# back to the main part
cd ..

# update some tooling
cp assets/linux/50-satellite.rules /etc/udev/rules.d/
udevadm control --reload-rules || true
Expand Down
16 changes: 6 additions & 10 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
import exitHook = require('exit-hook')
import meow from 'meow'
import { CompanionSatelliteClient } from './client'
import { DeviceManager } from './devices'
import { DEFAULT_PORT } from './lib'
import { RestServer } from './rest'
import { openHeadlessConfig } from './config'

const cli = meow(
`
const rawConfigPath = process.argv[2]
if (!rawConfigPath) {
console.log(`
Usage
$ companion-satellite <configuration-path>
Examples
$ companion-satellite config.json
$ companion-satellite /home/satellite/.config/companion-satellite.json
`,
{}
)

if (cli.input.length === 0) {
cli.showHelp(0)
`)
// eslint-disable-next-line no-process-exit
process.exit(1)
}

const rawConfigPath = cli.input[0]
const appConfig = openHeadlessConfig(rawConfigPath)

console.log('Starting', appConfig.path)
Expand Down
Loading

0 comments on commit 23278de

Please sign in to comment.