From 7595c2f2ee8556bc63d9226f0aafa91fe77ebf79 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 3 Jul 2025 09:26:46 +0100 Subject: [PATCH] reorganise dir structure --- index.js => bin/index.js | 20 ++++++++++---------- {utils => src}/audio.js | 0 {utils => src}/cli.js | 0 {utils => src}/clip.js | 0 {utils => src}/record.js | 0 {utils => src}/scene.js | 0 {utils => src}/screenshot.js | 0 {utils => src}/stream.js | 0 {utils => src}/style.js | 0 {utils => src}/virtualcam.js | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) rename index.js => bin/index.js (94%) rename {utils => src}/audio.js (100%) rename {utils => src}/cli.js (100%) rename {utils => src}/clip.js (100%) rename {utils => src}/record.js (100%) rename {utils => src}/scene.js (100%) rename {utils => src}/screenshot.js (100%) rename {utils => src}/stream.js (100%) rename {utils => src}/style.js (100%) rename {utils => src}/virtualcam.js (99%) diff --git a/index.js b/bin/index.js similarity index 94% rename from index.js rename to bin/index.js index d5658d6..5ed6275 100755 --- a/index.js +++ b/bin/index.js @@ -10,15 +10,15 @@ import { QWebChannel } from 'qwebchannel' import WebSocket from 'ws' -import cli from './utils/cli.js' -import style from './utils/style.js' -import { sceneHelp, sceneList, sceneSwitch, sceneCurrent } from './utils/scene.js' -import { audioHelp, audioList, audioMute, audioUnmute, audioToggle, audioStatus } from './utils/audio.js' -import { streamHelp, streamStart, streamStop, streamToggle, streamStatus } from './utils/stream.js' -import { recordHelp, recordStart, recordStop, recordToggle, recordStatus } from './utils/record.js' -import { clipHelp, clipSave } from './utils/clip.js' -import { screenshotHelp, screenshotTake } from './utils/screenshot.js' -import { virtualcamHelp, virtualcamToggle } from './utils/virtualcam.js' +import cli from '../src/cli.js' +import style from '../src/style.js' +import { sceneHelp, sceneList, sceneSwitch, sceneCurrent } from '../src/scene.js' +import { audioHelp, audioList, audioMute, audioUnmute, audioToggle, audioStatus } from '../src/audio.js' +import { streamHelp, streamStart, streamStop, streamToggle, streamStatus } from '../src/stream.js' +import { recordHelp, recordStart, recordStop, recordToggle, recordStatus } from '../src/record.js' +import { clipHelp, clipSave } from '../src/clip.js' +import { screenshotHelp, screenshotTake } from '../src/screenshot.js' +import { virtualcamHelp, virtualcamToggle } from '../src/virtualcam.js' const input = cli.input const flags = cli.flags @@ -37,7 +37,7 @@ function printHelp (helpText) { process.exit(0) } -/** +/** * Print an error message and exit the process. * @param {string} message - The error message to print. */ diff --git a/utils/audio.js b/src/audio.js similarity index 100% rename from utils/audio.js rename to src/audio.js diff --git a/utils/cli.js b/src/cli.js similarity index 100% rename from utils/cli.js rename to src/cli.js diff --git a/utils/clip.js b/src/clip.js similarity index 100% rename from utils/clip.js rename to src/clip.js diff --git a/utils/record.js b/src/record.js similarity index 100% rename from utils/record.js rename to src/record.js diff --git a/utils/scene.js b/src/scene.js similarity index 100% rename from utils/scene.js rename to src/scene.js diff --git a/utils/screenshot.js b/src/screenshot.js similarity index 100% rename from utils/screenshot.js rename to src/screenshot.js diff --git a/utils/stream.js b/src/stream.js similarity index 100% rename from utils/stream.js rename to src/stream.js diff --git a/utils/style.js b/src/style.js similarity index 100% rename from utils/style.js rename to src/style.js diff --git a/utils/virtualcam.js b/src/virtualcam.js similarity index 99% rename from utils/virtualcam.js rename to src/virtualcam.js index f6a049f..ed02182 100644 --- a/utils/virtualcam.js +++ b/src/virtualcam.js @@ -6,7 +6,7 @@ * Provides commands to toggle the virtual camera on or off. * Integrates with cli-meow-help for command-line help. */ - + import meowHelp from 'cli-meow-help' const commands = {