Commit Graph
2 Commits
Author SHA1 Message Date
Daniel SamsonandClaude Opus 4.5 79f89be47c feat(config): implement configuration system with TOML parser (#2)
- Add LogLevel enum with case-insensitive parsing
- Add OperatingSystem enum with platform detection
- Create config records: Config, ServiceConfig, JobsConfig, CleanupConfig, StorageConfig
- Add ConfigDefaults for platform-specific paths (Unix/Windows)
- Implement TomlParser supporting sections, strings, integers, floats, booleans, arrays
- Create ConfigLoader with:
  - File loading from search paths (system/user config)
  - Environment variable overrides (BARN_SECTION_KEY pattern)
  - Validation of all config values
  - Defaults for missing values
- Add comprehensive tests (93 new tests, 119 total)

Closes #2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 12:59:15 +00:00
Daniel SamsonandClaude Opus 4.5 05937b1f7e feat(cli): set up project structure and main entry point (#1)
- Create Main.java with picocli integration and testable run() method
- Create BarnCommand as root command with all subcommands registered
- Add placeholder subcommands: run, status, describe, kill, clean, service, config
- Update package structure from org.media.samson to com.samsonmedia.barn
- Configure checkstyle to allow underscores in test method names
- Add comprehensive tests for all CLI commands (26 tests, 80%+ coverage)

Closes #1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 12:53:54 +00:00