File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace Tamedevelopers \Database \Console \Commands ;
66
7- use Tamedevelopers \Support \Env ;
87use Tamedevelopers \Support \Tame ;
98use Tamedevelopers \Database \AutoLoader ;
10- use Tamedevelopers \Database \ DatabaseManager ;
9+ use Tamedevelopers \Support \ Capsule \ Logger ;
1110use Tamedevelopers \Support \Capsule \CommandHelper ;
1211
1312
@@ -20,6 +19,17 @@ class ScaffoldCommand extends CommandHelper
2019 * @return void
2120 */
2221 public function handle ()
22+ {
23+ Logger::helpHeader ('<yellow>Usage:</yellow> ' );
24+ Logger::writeln (' php tame scaffold:run --force ' );
25+ Logger::writeln ('' );
26+ }
27+
28+ /**
29+ * App scalffolding
30+ * Subcommand: php tame scaffold:run
31+ */
32+ public function run ()
2333 {
2434 // if app is running inside of a framework
2535 $ frameworkChecker = (new Tame )->isAppFramework ();
@@ -28,7 +38,7 @@ public function handle()
2838 $ force = $ this ->force ();
2939
3040 // Check for framework mode
31- if (! $ frameworkChecker && !$ force ){
41+ if ($ frameworkChecker && !$ force ){
3242 $ this ->warning ("Sorry! This command can't be run in a framework. " );
3343 return ;
3444 }
You can’t perform that action at this time.
0 commit comments