Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Easyfind for Gitlab
Java Library for search in the GitLab repository

Java 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)