diff --git a/completion/zsh/_lazy b/completion/zsh/_lazy index 34d593607..681c105d7 100644 --- a/completion/zsh/_lazy +++ b/completion/zsh/_lazy @@ -1,14 +1,3 @@ -Building schema class files... -Checking TestApp\Model\UserSchema... -Checking TestApp\Model\IDNumberSchema... -Checking TestApp\Model\NameSchema... -Checking AuthorBooks\Model\AddressSchema... -Checking AuthorBooks\Model\BookSchema... -Checking AuthorBooks\Model\AuthorSchema... -Checking AuthorBooks\Model\AuthorBookSchema... -Checking AuthorBooks\Model\PublisherSchema... -Checking MetricApp\Model\MetricValueSchema... -Checking PageApp\Model\PageSchema... # bin/lazy zsh completion script generated by CLIFramework # Web: http://github.com/c9s/php-CLIFramework # THIS IS AN AUTO-GENERATED FILE, PLEASE DON'T MODIFY THIS FILE DIRECTLY. @@ -78,10 +67,7 @@ local ret=1 build-conf:'Build configuration file.' conf:'Build configuration file.' schema:'schema command.' - list-schema:'list schema files.' - build-schema:'build schema files.' - clean-schema:'clean up schema files.' - build-basedata:'insert basedata into datasource.' + basedata:'insert basedata into datasource.' sql:'build sql and insert into database.' diff:'Compare the defined schemas with the tables in database.' migrate:'Database migration commands' @@ -190,7 +176,6 @@ local ret=1 (cmds) local commands; commands=( build:'build schema files.' - sql:'build sql and insert into database.' list:'list schema files.' clean:'clean up schema files.' ) @@ -206,16 +191,6 @@ local ret=1 ':file:_files' \ && ret=0 - ;; - (sql) - _arguments -w -S -s \ - '(-D --data-source)'{-D,--data-source=}'[specify data source id]::{___bin_lazymeta "" schema.sql opt data-source valid-values}' \ - '(-r --rebuild)'{-r,--rebuild}'[rebuild SQL schema.]' \ - '(-c --clean)'{-c,--clean}'[clean up SQL schema.]' \ - '(-f --file)'{-f,--file=}'[write schema sql to file]' \ - '(-b --basedata)'{-b,--basedata}'[insert basedata]' \ - && ret=0 - ;; (list) @@ -223,6 +198,7 @@ local ret=1 (clean) _arguments -w -S -s \ '(-f --force)'{-f,--force}'[force generate all schema files.]' \ + '(-D --data-source)'{-D,--data-source=}'[specify data source id]::{___bin_lazymeta "" schema.clean opt data-source valid-values}' \ && ret=0 ;; @@ -231,26 +207,9 @@ local ret=1 esac ;; - (list-schema) - - ;; - (build-schema) - _arguments -w -S -s \ - '(-f --force)'{-f,--force}'[force generate all schema files.]' \ - '(-D --data-source)'{-D,--data-source=}'[specify data source id]::{___bin_lazymeta "" build-schema opt data-source valid-values}' \ - ':file:_files' \ - && ret=0 - - ;; - (clean-schema) - _arguments -w -S -s \ - '(-f --force)'{-f,--force}'[force generate all schema files.]' \ - && ret=0 - - ;; - (build-basedata) + (basedata) _arguments -w -S -s \ - '(-D --data-source)'{-D,--data-source=}'[specify data source id]::{___bin_lazymeta "" build-basedata opt data-source valid-values}' \ + '(-D --data-source)'{-D,--data-source=}'[specify data source id]::{___bin_lazymeta "" basedata opt data-source valid-values}' \ && ret=0 ;; diff --git a/composer.json b/composer.json index bb4555d8e..5c841c303 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "fast" ], "description": "The Fast PHP ORM", - "version": "2.2.3", + "version": "2.2.4", "require": { "php": ">=5.4.0", "corneltek/sqlbuilder": ">= 2.8.4 < 3.0", @@ -52,4 +52,4 @@ "LazyRecord\\": "src/LazyRecord/" } } -} +} \ No newline at end of file diff --git a/src/LazyRecord/Console.php b/src/LazyRecord/Console.php index 5ed28a435..ca1c5e189 100644 --- a/src/LazyRecord/Console.php +++ b/src/LazyRecord/Console.php @@ -5,7 +5,7 @@ class Console extends Application { const name = 'LazyRecord'; - const VERSION = "2.2.3"; + const VERSION = "2.2.4"; public function brief() {