passes testing after slimming
This commit is contained in:
26
run.sh
26
run.sh
@@ -35,9 +35,7 @@ fi
|
||||
|
||||
# Parse command line arguments
|
||||
INTERACTIVE=false
|
||||
SIMPLE=false
|
||||
STATS=false
|
||||
POOL_STATS=false
|
||||
FILL_POOL=false
|
||||
HELP=false
|
||||
|
||||
@@ -47,18 +45,10 @@ while [[ $# -gt 0 ]]; do
|
||||
INTERACTIVE=true
|
||||
shift
|
||||
;;
|
||||
-s | --simple)
|
||||
SIMPLE=true
|
||||
shift
|
||||
;;
|
||||
--stats)
|
||||
STATS=true
|
||||
shift
|
||||
;;
|
||||
--pool-stats)
|
||||
POOL_STATS=true
|
||||
shift
|
||||
;;
|
||||
--fill-pool)
|
||||
FILL_POOL=true
|
||||
shift
|
||||
@@ -80,37 +70,27 @@ if [ "$HELP" = true ]; then
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo " -i, --interactive Run in interactive mode (with rich interface)"
|
||||
echo " -s, --simple Run simple version (no rich dependency)"
|
||||
echo " --stats Show prompt history statistics"
|
||||
echo " --pool-stats Show prompt pool statistics"
|
||||
echo " --stats Show combined statistics (pool and history)"
|
||||
echo " --fill-pool Fill prompt pool using AI (makes API call)"
|
||||
echo " -h, --help Show this help message"
|
||||
echo ""
|
||||
echo "Examples:"
|
||||
echo " ./run.sh # Draw prompts from pool (default)"
|
||||
echo " ./run.sh -i # Interactive mode"
|
||||
echo " ./run.sh -s # Simple version"
|
||||
echo " ./run.sh --stats # Show history statistics"
|
||||
echo " ./run.sh --pool-stats # Show pool statistics"
|
||||
echo " ./run.sh --stats # Show combined statistics"
|
||||
echo " ./run.sh --fill-pool # Fill prompt pool using AI"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$STATS" = true ]; then
|
||||
echo "📊 Showing history statistics..."
|
||||
echo "📊 Showing combined statistics..."
|
||||
python3 generate_prompts.py --stats
|
||||
elif [ "$POOL_STATS" = true ]; then
|
||||
echo "📊 Showing pool statistics..."
|
||||
python3 generate_prompts.py --pool-stats
|
||||
elif [ "$FILL_POOL" = true ]; then
|
||||
echo "🔄 Filling prompt pool using AI..."
|
||||
python3 generate_prompts.py --fill-pool
|
||||
elif [ "$INTERACTIVE" = true ]; then
|
||||
echo "🎮 Starting interactive mode..."
|
||||
python3 generate_prompts.py --interactive
|
||||
elif [ "$SIMPLE" = true ]; then
|
||||
echo "⚡ Running simple version..."
|
||||
python3 simple_generate.py
|
||||
else
|
||||
echo "✨ Drawing prompts from pool..."
|
||||
python3 generate_prompts.py
|
||||
|
||||
Reference in New Issue
Block a user