refactor(os): rename autostart classes to os classes

These perform OS-specific functions
This commit is contained in:
2026-04-29 20:13:09 +01:00
parent 441dc02080
commit 8cd766fc8d
4 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import sys
import argparse import argparse
from rewind.core import clip, mark, save, print_markers from rewind.core import clip, mark, save, print_markers
from rewind.autostart.main import enable_autostart, disable_autostart, start_daemon, stop_daemon from rewind.os.main import enable_autostart, disable_autostart, start_daemon, stop_daemon
from rewind.config import Config from rewind.config import Config
def build_clip_parser(subparsers: argparse._SubParsersAction) -> None: def build_clip_parser(subparsers: argparse._SubParsersAction) -> None:

View File

@@ -1,4 +1,4 @@
class AutostartBackend: class OSBackend:
def __init__(self, program_path: str): def __init__(self, program_path: str):
self.program_path = program_path self.program_path = program_path

View File

@@ -1,9 +1,9 @@
import subprocess import subprocess
from pathlib import Path from pathlib import Path
from rewind.autostart.autostart_backend import AutostartBackend from rewind.os.backend import OSBackend
class LinuxBackend(AutostartBackend): class LinuxBackend(OSBackend):
def __init__(self, program_path: str): def __init__(self, program_path: str):
super().__init__(program_path) super().__init__(program_path)

View File

@@ -2,7 +2,7 @@
import platform import platform
import shutil import shutil
from rewind.autostart.linux import LinuxBackend from rewind.os.linux import LinuxBackend
APP_NAME = "rewind-daemon" APP_NAME = "rewind-daemon"