Skip to content

Commit 082e06a

Browse files
Revise README examples and installation instructions
Updated examples to include 'this' argument in BPJ calls and removed outdated installation instructions.
1 parent bd43c9e commit 082e06a

1 file changed

Lines changed: 2 additions & 29 deletions

File tree

README.md

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BPJ is a Java 17+ library that makes string interpolation and prints easier.
44
It is designed to reduce boilerplate when building messages like:
55

66
```java
7-
BPJ.println("Bienvenido {usuario.name}");
7+
BPJ.println("Bienvenido {usuario.name}", this);
88
```
99

1010
## What It Is For
@@ -16,26 +16,6 @@ BPJ.println("Bienvenido {usuario.name}");
1616

1717
## Installation
1818

19-
### Recommended (runtime + plugin auto-configured)
20-
21-
```xml
22-
<parent>
23-
<groupId>io.github.oriontheprogrammer</groupId>
24-
<artifactId>bpj-starter-parent</artifactId>
25-
<version>0.3.0</version>
26-
</parent>
27-
```
28-
29-
### Spring Boot Compatible Parent (runtime + plugin auto-configured)
30-
31-
```xml
32-
<parent>
33-
<groupId>io.github.oriontheprogrammer</groupId>
34-
<artifactId>bpj-spring-boot-parent</artifactId>
35-
<version>0.3.0</version>
36-
</parent>
37-
```
38-
3919
### Maven (runtime + plugin manual setup)
4020

4121
```xml
@@ -106,17 +86,10 @@ BPJ.println("Hola {name}");
10686
BPJ.print("Valor del producto: {product.value}");
10787
```
10888

109-
### Highlight Variable Values (ANSI colors)
110-
111-
```java
112-
BPJ.printlnHighlighted("Hola {name}");
113-
BPJ.setHighlightColor(BPJ.AnsiColor.BRIGHT_CYAN);
114-
```
115-
11689
### Return a String
11790

11891
```java
11992
public String retornarTexto(String name, int edad) {
120-
return BPJ.format("Hola {name}, tienes {edad}");
93+
return BPJ.format("Hola {name}, tienes {edad}", this);
12194
}
12295
```

0 commit comments

Comments
 (0)