Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Added a new zep.php file for CLI. Removed zep tool
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Jan 22, 2014
1 parent 53e3a39 commit 00bcf96
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 62 deletions.
62 changes: 0 additions & 62 deletions bin/zep

This file was deleted.

22 changes: 22 additions & 0 deletions zep.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

// Require stuff
require('vendor/autoload.php' );

$zep = new Zepto\Console($argv);

$zep->param('option', 'Choose from init or new', true);
$zep->param('new_option', 'Choose from plugin or content');

if(!$zep->parse()) {
exit(1);
}

if ($zep->get('option') === 'init') {
$zep->out('init');
// do init shit
}
elseif ($zep->get('option') === 'new') {
$zep->out('new');
// do new shit
}

0 comments on commit 00bcf96

Please sign in to comment.