feat: add devcontainer/nix support and refactor into modules

- Add .devcontainer/devcontainer.json for Podman development
- Add shell.nix for Nix users
- Refactor monolithic main.cpp into modular components:
  - parser: argument parsing
  - validator: configuration validation
  - converter: ffmpeg command building/execution
- Update Makefile with proper dependencies and test target
- Simplify build.sh to use make
- Update README with development environment docs
This commit is contained in:
tkmxqrdxddd
2026-03-16 17:35:35 +01:00
parent 64cde37777
commit 75285276e4
13 changed files with 418 additions and 299 deletions

10
src/include/converter.hpp Normal file
View File

@@ -0,0 +1,10 @@
#ifndef CONVERTER_HPP
#define CONVERTER_HPP
#include "config.hpp"
#include <string>
std::string build_ffmpeg_command(const Config& config);
int execute_conversion(const std::string& command, bool verbose);
#endif // CONVERTER_HPP