-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dependencies, added jewelcli command line parsing
- Loading branch information
1 parent
8bbc33a
commit e7e7ecf
Showing
8 changed files
with
101 additions
and
46 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
25 changes: 25 additions & 0 deletions
25
client/src/main/java/me/retrodaredevil/solarthing/program/CommandOptions.java
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package me.retrodaredevil.solarthing.program; | ||
|
||
import com.lexicalscope.jewel.cli.Option; | ||
import com.lexicalscope.jewel.cli.Unparsed; | ||
|
||
import java.io.File; | ||
import java.util.List; | ||
|
||
public interface CommandOptions { | ||
@Option(shortName = "h", longName = "help", helpRequest = true) | ||
boolean isHelp(); | ||
@Option(longName = "base", defaultToNull = true, description = "Use alone to define the base configuration file") | ||
File getBaseConfigFile(); | ||
|
||
@Option(longName = "couchdb-setup", defaultToNull = true, description = "Use alone to define the CouchDB configuration file and launch the CouchDB setup program") | ||
File getCouchDbSetupFile(); | ||
|
||
@Option(longName = "from", defaultToNull = true, description = "Use with --base and a pvoutput-upload program type") | ||
String getPVOutputFromDate(); | ||
@Option(longName = "to", defaultToNull = true, description = "Use with --base and a pvoutput-upload program type") | ||
String getPVOutputToDate(); | ||
|
||
@Unparsed(name = "LEGACY ARGUMENTS") | ||
List<String> getLegacyOptions(); | ||
} |
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
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