mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #06160
[Bug 844607] Re: Create CLI Framework/Libraries
Hi Andrew,
Should we create a wiki page showing how to use these frameworks
Cheers,
Hugh
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/844607
Title:
Create CLI Framework/Libraries
Status in Mahara ePortfolio:
Fix Committed
Bug description:
I've been having a look at bug #844604. Rather than re-inventing the wheel every time we want to do a CLI system, I propose that we create a CLI library
lib/cli.php
This should ideally give functionality for:
* retrieve arguments supplied on the CLI (e.g. --agree-to-license=yes --upgrade-only -p=letmein -e=foo@xxxxxxxxxxx)
* add a log_exit or equivelant which would exit with the appropriate exit code (0 = success, 127 = error, other supplied ints in range) and exit - e.g. cli_exit().
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/844607/+subscriptions
References