Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gafawork/easyfind
Easyfind for Gitlab
https://github.com/gafawork/easyfind
git gitlab
Last synced: 2 months ago
JSON representation
Easyfind for Gitlab
- Host: GitHub
- URL: https://github.com/gafawork/easyfind
- Owner: gafawork
- License: apache-2.0
- Created: 2024-07-14T12:09:00.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-10T11:55:55.000Z (4 months ago)
- Last Synced: 2024-09-30T03:03:34.962Z (3 months ago)
- Topics: git, gitlab
- Language: Java
- Homepage:
- Size: 306 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Easyfind for Gitlab
Java Library for search in the GitLab repositoryJava library for searching Gitlab Server repositories.
---
## GitLab Server Version Support
gitlab4j-api which supports versions 11.0+ of Gitlab Community Edition and Gitlab Enterprise Edition
---
### Generate Jar
```
mvn clean install
```---
### Using Gitlab-Search| parameter | functionality | sample |
|-----------------------------|--------------------------------------------------------------|---------------------------------|
| -d, --debug | debug | -d |
| -t, --token | token [REQUIRED] | -t glpat-x3Udy1PSS5_AgRwjUDu |
| -f, --filter | filter files | -f "pom.xml" "config.properties" |
| -s, --search | one text or list of many text as input for search [REQUIRED] | -s "context" "Spring-boot" |
| -b, --searchBranches | branch(es) | -b "master" "develop" |
| -h, hostUrl | host gitlab [REQUIRED] | -h "https://gitlab.com" |
| -n, --projectName | project name | -n "gitlab-search" "gafawork" |
| -p, --parallel | total threads | -p 4 |
### **Java 21 Requirement**
### **Project Set Up**
To run Gitlab-Search, you must run it via the command line using the parameters below:
```
java -jar ./target/easyfind-1.0-jar-with-dependencies.jar
-d
-t glpat-x2UHy2PSS7_AGRwKqUDu
-p 4
-f "pom.xml"
-s "jasper"
-b "master"
-h "https://gitlab.com"
```
```
java -jar ./target/easyfind-1.0-jar-with-dependencies.jar
-d
-t glpat-x2UHy2PSS7_AGRwKqUDu
-p 4
-f "^.*.java$"
-s "String" "Integer"
-b "master"
-h "https://gitlab.com"
```
**Output:**
![img.png](img.png)
**Note: **
- report-yyyy-MM-dd hh-mm-ss.csv file generated with the search result.![img_1.png](img_1.png)
- report-yyyy-MM-dd hh-mm-ss.txt file generated with the search result.
![img_2.png](img_2.png)