cliferay
Daily scripts to work with Liferay
The scripts can be run from any folder:
- If the folder is outside the repo it will use LIFERAY_HOME.
- If the folder is inside the repo it will use that repo.
For example every day I open my terminal and type:
> cliferay morning
and it will just work no matter which folder I am in.
Usage:
cliferay COMMAND
cliferay [COMMAND] --help | -h
cliferay --version | -v
cliferay Commands:
init Initialize cliferay
update Update cliferay to the latest version
Build Commands:
ant Run ant
build Run ant all
gw Run gradlew
ij Run liferay-intellij
morning Sync, build, ij, nuke and run
Server Commands:
curl Send HTTP requests to the server
elastic-search Query the Elastic Search index
gogo Open the Gogo Shell
kill Kill the server
nuke Delete all persisted data
run Start the server
Code Commands:
baseline Run baseline in the current folder
build-rest Run buildREST globally
changed-modules List changed modules
deploy Deploy the current folder
format-source Run SF globally
owner Output the owner of a path based on CODEOWNERS
poshi Run a Poshi test
super-deploy Deploy changed modules
Git Commands:
brian Forward an existing PR to Brian and close it
backport Backport commits to other branches
set-ticket Set the Jira ticket on your local commits
stats Calculate different Git stats
sync Sync fork and local copy with upstream
tickets Get all Jira tickets from the output of git log
Jira Commands:
jira Open a Jira ticket in the browser
GTD Commands:
todo Create a todo in Trello
todos Lists todos from Trello
Options:
--help, -h
Show this help
--version, -v
Show version number
Environment Variables:
DEBUG
Set to true to enable echoing of all the commands being run
- Clone this repo.
- Add the bin folder to your path:
export PATH=/path/to/cliferay/bin:$PATH
- Run it!
cliferay --help
- If you want to enable bash completions add this to your
.bash_profile
,.zshrc
or similar:eval "$(cliferay completions)"
- If you want to enable aliases (like gw) add this to your
.bash_profile
,.zshrc
or similar:eval "$(cliferay aliases)"
Important
If you're working on macOS, you need to install coreutils
. You can install it via Homebrew:
brew install coreutils
Then, add the gnubin
directory to your PATH
in your .zshrc
or .bashrc
:
# Use coreutils installed via Homebrew: https://www.gnu.org/software/coreutils/
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
cliferay
has been created with https://bashly.dev. To be able to contribute you'll need to get familiar with it first.
- Make the change inside
src/commands
. - Run
make
. - Test it
cliferay [COMMAND] ...
- Submit a pull request!
- Modify
src/bashly.yml
with your new command. - Run
make
. - Implement your command inside
src/commands
. - Run
make
again. - Test it
cliferay [COMMAND] ...
- Submit a pull request!