Page 2 of 2

Re: Idea: S9y CLI tool

Posted: Mon Jul 29, 2013 2:53 pm
by mattsches
yellowled wrote:While we're at it, I have to admit that Dogma is actually one of the very few flicks by Kevin Smith which I don't like. :mrgreen:

YL
Now this is getting off-topic, but anyway. It's definitely not his best movie, but I haven't seen anything since Clerks II. (The original Clerks is one of my favorite movies of all time ...)

Btw: Is someone capable of mixing the S9y logo with this? Would result in a nice logo for Metatron :wink:

Re: Idea: S9y CLI tool

Posted: Mon Jul 29, 2013 5:55 pm
by onli
A more carefully made
Image
?^^

Re: Idea: S9y CLI tool

Posted: Mon Jul 29, 2013 6:13 pm
by mattsches
LOL .. yeah, almost perfect!!!

@onli Have you tried to run the tool yet?

Re: Idea: S9y CLI tool

Posted: Mon Jul 29, 2013 6:15 pm
by onli
Yep, just sent the mail a minute ago.

Re: Idea: S9y CLI tool

Posted: Mon Jul 29, 2013 6:39 pm
by yellowled
I took the liberty of creating a repository for Metatron: https://github.com/s9y/Metatron

Now mattsches just needs to commit the actual project files. :) (Unless I did something wrong.)

YL

Re: Idea: S9y CLI tool

Posted: Mon Jul 29, 2013 10:31 pm
by artodeto
yellowled wrote:I took the liberty of creating a repository for Metatron: https://github.com/s9y/Metatron

Now mattsches just needs to commit the actual project files. :) (Unless I did something wrong.)

YL
I will have a look to the github project ;-).
I've played around with symfony console and created some simple components (composer ready). Take a look to configuration format converter if you want to. I extended the existing application with a IOInterface (influenced by composer) to get rid of the io handling :-).

Re: Idea: S9y CLI tool

Posted: Sat Aug 03, 2013 3:34 pm
by mattsches
So, I've just pushed the first version to GitHub :D

I've also blogged about it (in German): Metatron - Ein CLI-Tool für Serendipity

Clone or fork it, try it, give feedback please!

Re: Idea: S9y CLI tool

Posted: Sat Aug 03, 2013 3:49 pm
by Timbalu
Whow. Congrats!
That looks very neat. :)

To extend the userbase for testing, you might need to add a dummy description on how to use it for what in detail here, since not everybody is knowing the usage and possible benefits. This starts telling, that it is used to install or administrate Serendipity by CLI console with some very simple commands, am I right? :wink:

Re: Idea: S9y CLI tool

Posted: Sat Aug 03, 2013 3:55 pm
by yellowled
Timbalu wrote:To extend the userbase for testing, you might need to add a dummy description on how to use it for what in detail here, since not everybody is knowing the usage and possible benefits.
https://github.com/s9y/Metatron#usage

YL

Re: Idea: S9y CLI tool

Posted: Sat Aug 03, 2013 4:46 pm
by mattsches
Timbalu wrote:To extend the userbase for testing, you might need to add a dummy description on how to use it for what in detail here, since not everybody is knowing the usage and possible benefits. This starts telling, that it is used to install or administrate Serendipity by CLI console with some very simple commands, am I right? :wink:
Thanks for the feedback, Ian! I wanted to push it to GitHub as soon as possible, that's why the README contains only the most important information. Since the tool is aimed at admins and developers, they will know what to do hopefully ;)

But I will add some more info and documentation later!

Re: Idea: S9y CLI tool

Posted: Thu Sep 05, 2013 11:30 am
by mattsches
Two small changes in serendipity_config.inc.php seem to be necessary for Metatron to work correctly. If nobody has any objections, I will commit the following change to the 2.0 branch:

Code: Select all

$ git diff serendipity_config.inc.php
diff --git a/serendipity_config.inc.php b/serendipity_config.inc.php
index a55f475..99c21c7 100644
--- a/serendipity_config.inc.php
+++ b/serendipity_config.inc.php
@@ -8,7 +8,7 @@ if (defined('S9Y_FRAMEWORK')) {
 
 @define('S9Y_FRAMEWORK', true);
 
-if (!headers_sent()) {
+if (!headers_sent() && php_sapi_name() !== 'cli') {
     // Only set the session name, if no session has yet been issued.
     if (session_id() == '') {
         session_name('s9y_' . md5(dirname(__FILE__)));
@@ -312,7 +312,7 @@ if ( (isset($serendipity['autodetect_baseURL']) && serendipity_db_bool($serendip
  * If a user is logged in, fetch his preferences. He possibly wants to have a different language
  */
 
-if (IS_installed === true) {
+if (IS_installed === true && php_sapi_name() !== 'cli') {
     // Import HTTP auth (mostly used for RSS feeds)
     if ($serendipity['useHTTP-Auth'] && (isset($_REQUEST['http_auth']) || isset($_SERVER['PHP_AUTH_USER']))) {
         if (!isset($_SERVER['PHP_AUTH_USER'])) {

Re: Idea: S9y CLI tool

Posted: Thu Sep 05, 2013 2:08 pm
by garvinhicking
No objections!

Metatron (WAS: Re: Idea: S9y CLI tool)

Posted: Sat May 10, 2014 11:26 pm
by mattsches
I just pushed version 0.2.0. Please test!

I've been working on the update for quite a while every now and then. Today I felt I had to push things forward, so I committed my changes. It's quite a large commit and, even if my tests are all green, may still contain some bugs. So, please don't use in production!!

See the changelog for updates.

Regards,
Mattsches