diff --git a/README.md b/README.md index 542bce5..0ba779e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Log Analyzer v0.2.0 +# Log Analyzer v0.2.1 ## 💻 Платформы - ✅ macOS (clang/gcc, CMake ≥ 3.10) @@ -38,6 +38,11 @@ cd log-analyzer ./run.sh build ``` +- Консольное приложение +``` +./run.sh cli +``` + - Тестирование ``` ./run.sh test diff --git a/run.sh b/run.sh old mode 100644 new mode 100755 index 6b5590b..c952e8f --- a/run.sh +++ b/run.sh @@ -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 @@ -43,6 +54,7 @@ run_tests() { cd build/tests ./test-runner print_success "All tests passed!" + cd ../.. } clean_project() { @@ -71,6 +83,9 @@ case "$1" in "all") run_all ;; + "cli") + run_cli + ;; *) print_error "Unknown command: $1" exit 1