Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alias-mac/conflict-check
Sugar 7.8+ ViewDef conflict analyzer
https://github.com/alias-mac/conflict-check
Last synced: 30 days ago
JSON representation
Sugar 7.8+ ViewDef conflict analyzer
- Host: GitHub
- URL: https://github.com/alias-mac/conflict-check
- Owner: alias-mac
- License: other
- Created: 2016-06-30T07:16:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-30T21:30:15.000Z (over 8 years ago)
- Last Synced: 2024-10-14T10:02:30.280Z (2 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vardef and View defs checker
This is the Sugar 7.8+ Vardef and View def checker.
## How to use the script
You can ask for help anytime by simply run:
```bash
$ ./conflict-check -h
```You can run this with directories:
```bash
$ ./conflict-check -d="directory/to/check"
$ ./conflict-check --dir="directory/to/check"
```Or files only:
```bash
$ ./conflict-check -f="file/to/check"
$ ./conflict-check --file="file/to/check"
```Both can be have multiple values:
```bash
$ ./conflict-check -d="directory1/to/check" -d="directory2/to/check"
$ ./conflict-check -f="file1/to/check" -f="file2/to/check"
```Directories can have regex patterns (that will be used by glob):
```bash
$ ./conflict-check -d="directory1/*/to/*/check"
```For your convenience, you can keep the script out of the sugarcrm path and
combine the params above with the path of the [SugarCRM][SugarCRM] instance to
update:```bash
$ ./conflict-check -p="path/to/sugarcrm" -d="directory/to/check"
$ ./conflict-check --path="path/to/sugarcrm" -d="directory/to/check"
```To see more output information from the script, you can use the `-v` option
(for verbose).```bash
$ ./conflict-check -p="path/to/sugarcrm" -d="directory/to/check" -v
```You can even be bold and run the script directly from github:
```bash
$ curl -sS https://raw.github.com/alias-mac/conflict-check/master/conflict-check | php -- --path="path/to/sugarcrm" -f="modules/*/clients/*/views" -v
```## Have fun!
## TODO
- [ ] Support some modules that are blacklisted.
- [ ] Support SugarObjects templates (like company, person, file, etc.).[SugarCRM]: http://www.sugarcrm.com/