-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcli.php
More file actions
executable file
·33 lines (29 loc) · 1.08 KB
/
cli.php
File metadata and controls
executable file
·33 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
declare(strict_types=1);
/**
* Legacy CLI Interface
*
* This file is kept for backward compatibility.
* Please use the new generate.php for better experience with colors, progress bars, and more features.
*/
echo "\n";
echo "====================================================================\n";
echo " DEPRECATED: This CLI interface is deprecated.\n";
echo " Please use the new console application:\n";
echo " \n";
echo " php generate.php # Interactive mode\n";
echo " php generate.php list-tables # List all tables\n";
echo " php generate.php generate users # Generate specific table\n";
echo " php generate.php generate --all # Generate all tables\n";
echo " \n";
echo " Redirecting to new interface in 3 seconds...\n";
echo "====================================================================\n";
echo "\n";
sleep(3);
// Redirect to new console application
if (file_exists(__DIR__ . '/generate.php')) {
passthru('php ' . __DIR__ . '/generate.php');
} else {
echo "Error: generate.php not found. Please run: composer install\n";
exit(1);
}