-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ricardo
authored and
Ricardo
committed
Feb 9, 2021
1 parent
78af3b0
commit c798fc6
Showing
6 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
package com.ric.dividaspgfn; | ||
|
||
import org.fusesource.jansi.AnsiConsole; | ||
|
||
import picocli.CommandLine; | ||
import picocli.CommandLine.Command; | ||
|
||
@Command(name = "dividapgfn", subcommands = { BasePGFN.class, FiltraDivida.class }) | ||
final class DividaPGFN { | ||
public static void main(String... args) { | ||
System.exit(new CommandLine(new DividaPGFN()).execute(args)); | ||
CommandLine cli = new CommandLine(new DividaPGFN()); | ||
|
||
boolean jansiInstalled = false; | ||
try { | ||
AnsiConsole.systemInstall(); | ||
jansiInstalled = true; | ||
} catch (Exception e) { | ||
//ignorar | ||
} | ||
int exitCode = cli.execute(args); | ||
if (jansiInstalled) { | ||
try { | ||
AnsiConsole.systemUninstall(); | ||
} catch (Exception e) { | ||
//ignorar | ||
} | ||
} | ||
System.exit(exitCode); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
module com.ric.dividaspgfn { | ||
requires java.sql; | ||
requires info.picocli; | ||
requires org.fusesource.jansi; | ||
|
||
opens com.ric.dividaspgfn to info.picocli; | ||
} |