• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jreleaser / jreleaser / #470

20 Mar 2025 08:32PM UTC coverage: 49.197% (-0.9%) from 50.067%
#470

push

github

web-flow
docs: Add anneloreegger as a contributor for code

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>

24776 of 50361 relevant lines covered (49.2%)

0.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/plugins/jreleaser/src/main/java/org/jreleaser/cli/internal/Colorizer.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 *
4
 * Copyright 2020-2025 The JReleaser authors.
5
 *
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 *     https://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 */
18
package org.jreleaser.cli.internal;
19

20
import picocli.CommandLine;
21

22
import java.io.PrintWriter;
23

24
/**
25
 * @author Andres Almiray
26
 * @since 0.1.0
27
 */
28
public class Colorizer extends PrintWriter {
29
    public Colorizer(PrintWriter delegate) {
30
        super(delegate, true);
×
31
    }
×
32

33
    @Override
34
    public void print(String s) {
35
        super.print(CommandLine.Help.Ansi.AUTO.text("@|red " + s + "|@"));
×
36
    }
×
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc