|
9 | 9 | */ |
10 | 10 | public class VersionProvider implements CommandLine.IVersionProvider { |
11 | 11 |
|
| 12 | + private static final String LOGO = """ |
| 13 | + 888 888 d8b |
| 14 | + 888 888 Y8P |
| 15 | + 888 888 |
| 16 | + .d88888 .d88b. .d8888b 88888b. 888 8888b. |
| 17 | + d88" 888 d88""88b d88P" 888 "88b 888 "88b |
| 18 | + 888 888 888 888 888 888 888 888 .d888888 |
| 19 | + Y88b 888 Y88..88P Y88b. 888 888 888 888 888 |
| 20 | + "Y88888 "Y88P" "Y8888P 888 888 888 "Y888888 |
| 21 | + |
| 22 | + """; |
| 23 | + |
| 24 | + private static final String DESCRIPTION = """ |
| 25 | + |
| 26 | + @|bold dochia|@ - bringing chaos with love! |
| 27 | + |
| 28 | + @|bold,underline Because nobody wants to debug why their "enterprise-grade" API can't handle a simple 🤷♀️|@ |
| 29 | + |
| 30 | + dochia automatically generates and executes negative and boundary testing so you can |
| 31 | + focus on creative problem-solving. dochia lets you find bugs, security vulnerabilities, |
| 32 | + and contract violations in your API without writing a single test. |
| 33 | + |
| 34 | + @|yellow GitHub:|@ https://github.com/dochia-dev/dochia-cli |
| 35 | + @|yellow Docs:|@ https://docs.dochia.dev |
| 36 | + """; |
| 37 | + |
12 | 38 | @Override |
13 | 39 | public String[] getVersion() throws Exception { |
14 | 40 | Properties properties = new Properties(); |
15 | 41 | properties.load(getClass().getClassLoader().getResourceAsStream("version.properties")); |
| 42 | + String version = properties.getProperty("app.version") + " (Free)"; |
| 43 | + String buildTime = properties.getProperty("app.buildTime"); |
| 44 | + |
16 | 45 | return new String[]{ |
17 | | - "%n@|green " |
18 | | - + properties.getProperty("app.name") |
19 | | - + " v" |
20 | | - + properties.getProperty("app.version") |
21 | | - + "|@ (Free)" |
| 46 | + LOGO, |
| 47 | + "@|bold,green " + properties.getProperty("app.name") + " version " + version + "|@", |
| 48 | + "@|faint Built on: " + buildTime + "|@", |
| 49 | + DESCRIPTION |
22 | 50 | }; |
23 | 51 | } |
24 | 52 | } |
0 commit comments