Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Log Analyzer v0.2.0
# Log Analyzer v0.2.1

## 💻 Платформы
- ✅ macOS (clang/gcc, CMake ≥ 3.10)
Expand Down Expand Up @@ -38,6 +38,11 @@ cd log-analyzer
./run.sh build
```

- Консольное приложение
```
./run.sh cli
```

- Тестирование
```
./run.sh test
Expand Down
15 changes: 15 additions & 0 deletions run.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ build_project() {
print_success "Build complete!"
}

run_cli() {
print_info "Running Log Analyzer..."

if [ ! -d "$BUILD_DIR" ]; then
build_project
fi

cd $BUILD_DIR/cli
./$TARGET
}

run_tests() {
print_info "Running tests..."
if [ ! -d "$BUILD_DIR" ]; then
Expand All @@ -43,6 +54,7 @@ run_tests() {
cd build/tests
./test-runner
print_success "All tests passed!"
cd ../..
}

clean_project() {
Expand Down Expand Up @@ -71,6 +83,9 @@ case "$1" in
"all")
run_all
;;
"cli")
run_cli
;;
*)
print_error "Unknown command: $1"
exit 1
Expand Down