Ci4, CLI Spark Run Standart Command Terminal |
hi, is there a function/feature to run the command line outside the spark command?
I am creating an application installation feature via the spark CLI, I want to run several commands such as "composer require..", "cd", etc, these commands are standard from the terminal..can I do that with spark? (05-04-2024, 11:36 AM)codeus Wrote: For commands such as cd and composer, it would easiest to use a shell, which of course will run spark command also. hi codeus, thanks for u replay i mean , i have create features CLI for my project, its a new command in spark to installation my project. just by call 1 command in my project then all other command will be automaticaly executed ex. php spark ybs:install so other command will be automaticaly executed i have create that but the problem i dont know how to run command outside the spark . i have class extend BaseCommand n use function $this->call(...) but this function just call command inside the spark. i need call command outside the spark
The following script may be useful for you.
https://github.com/codeigniter4/translat...p/bin/test (05-05-2024, 12:54 AM)kenjis Wrote: The following script may be useful for you. Greate..thanks Kenji.. its work.. |
Welcome Guest, Not a member yet? Register Sign In |