From ab8bbca73d8fd40aee2766b908ed50b26b5b2a64 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Fri, 30 Oct 2015 16:57:57 +0530 Subject: [PATCH] added commands --- VERSION | 2 +- php/commands/site.php | 24 +++++++++++++ php/commands/stack.php | 80 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 php/commands/stack.php diff --git a/VERSION b/VERSION index c6c794a9..36634a60 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1-alpha +4.0.0-alpha diff --git a/php/commands/site.php b/php/commands/site.php index 43c9de34..d0f9842e 100644 --- a/php/commands/site.php +++ b/php/commands/site.php @@ -11,6 +11,30 @@ */ class Site_Command extends EE_CLI_Command { + /** + * Remove a value from the object cache. + * + * + * : Cache key. + *[--cache=] + * : Webroot + * [--user] + * [--pass] + * [--email] + * : Method for grouping data within the cache which allows the same key to be used across groups. + */ + + public function create( $args, $assoc_args ) { + + if (isset($assoc_args['cache'])){ + + EE_CLI::success( 'Site Successfully created with ' . $assoc_args['cache'] . ' cache.' ); + } + + + } + + /** * Remove a value from the object cache. * diff --git a/php/commands/stack.php b/php/commands/stack.php new file mode 100644 index 00000000..c1aa5ce2 --- /dev/null +++ b/php/commands/stack.php @@ -0,0 +1,80 @@ +] + * + * + * : Method for grouping data within the cache which allows the same key to be used across groups. + */ + + public function install( $args, $assoc_args ) { + + if (isset($assoc_args['package'])){ + + EE_CLI::success( 'Site Successfully created with ' . $assoc_args['package'] . ' cache.' ); + } + + + } + + + + public function remove( $args, $assoc_args ) { + + //removing packages + + + } + + public function purge( $args, $assoc_args ) { + + + } + + public function start( $args, $assoc_args ) { + + //removing packages + + + } + + + public function stop( $args, $assoc_args ) { + + //removing packages + + + } + + + + + public function upgrade( $args, $assoc_args ) { + + //removing packages + + + } + + + + + +} + +EE_CLI::add_command( 'stack', 'Stack_Command' );