Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4lejandrito/cliferay
Daily scripts to work with Liferay
https://github.com/4lejandrito/cliferay
Last synced: 2 months ago
JSON representation
Daily scripts to work with Liferay
- Host: GitHub
- URL: https://github.com/4lejandrito/cliferay
- Owner: 4lejandrito
- Created: 2023-07-27T12:45:40.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-09T10:58:51.000Z (5 months ago)
- Last Synced: 2024-08-10T10:38:32.331Z (4 months ago)
- Language: Shell
- Size: 137 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cliferay
```
cliferayDaily 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 | -vcliferay Commands:
update Update cliferay to the latest versionGit Commands:
sync Sync fork and local copy with upstream
brian Forward an existing PR to Brian and close it
set-ticket Set the Jira ticket on your local commits
tickets Gets all Jira tickets from the output of git log
stats Calculate different Git statsBuild Commands:
build Run ant all
ij Run liferay-intellij
gw Run gradlew
ant Run antModule Commands:
changed-modules List changed modules
super-deploy Deploy changed modules
format-source Run SF globally
deploy Deploy the current folder
baseline Run baseline in the current folder
poshi Run a Poshi testServer Commands:
run Start the server
gogo Opens the Gogo Shell
kill Kill the server
nuke Delete all persisted data
tomcat-folder Print the current tomcat folder
elastic-search Queries the Elastic Search index
db-name Prints the database name (lportal)Commands:
morning Sync, build, ij, nuke and run
folder Print the source folder
curl Send predefined HTTP requests to a running portal
backport Backport commits to other branches
jira Open a Jira ticketOptions:
--help, -h
Show this help--version, -v
Show version numberEnvironment Variables:
LIFERAY_HOME (required)
Location of your main liferay-portal cloneDEBUG
Set to true to enable echoing of all the commands being run
```## Installation
1. Clone this repo.
2. Add it to your path:
```bash
export PATH=/path/to/cliferay:$PATH
```
3. Run it!
```bash
cliferay --help
```
4. If you want to enable bash completions add this to your `.bash_profile`, `.zshrc` or similar:
```bash
eval "$(cliferay completions)"
```
4. If you want to enable aliases (like gw) add this to your `.bash_profile`, `.zshrc` or similar:
```bash
eval "$(cliferay aliases)"
```## Contributing
`cliferay` has been created with https://bashly.dannyb.co. To be able to contribute you'll need to get familiar with it first.
### Modify an existing command
1. Make the change inside `src/commands`.
2. Run `./generate.sh`.
3. Test it `cliferay [COMMAND] ...`
4. Submit a pull request!### Add a new command
1. Modify `src/bashly.yml` with your new command.
2. Run `./generate.sh`.
3. Implement your command inside `src/commands`.
4. Run `./generate.sh` again.
5. Test it `cliferay [COMMAND] ...`
6. Submit a pull request!