个人知识管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
1.1 KiB

@echo off
echo Testing PKM System with proper commands...
echo.
echo ========================================
echo 1. Clean start - delete old data
echo ========================================
if exist notes.txt del notes.txt
if exist java_note.txt del java_note.txt
echo ========================================
echo 2. Create notes
echo ========================================
java -cp "target/classes" com.example.App new "Java Basics" "Object-oriented programming principles"
java -cp "target/classes" com.example.App new "Design Patterns" "Software design patterns for reusable code"
echo.
echo ========================================
echo 3. List all notes
echo ========================================
java -cp "target/classes" com.example.App list
echo.
echo ========================================
echo 4. Search for patterns
echo ========================================
java -cp "target/classes" com.example.App search "pattern"
echo.
echo ========================================
echo 5. Show help
echo ========================================
java -cp "target/classes" com.example.App help
echo.
echo Test completed!
pause