public class Config
Config Singleton that stores paths to the database and the papio directory
Modifier and Type | Field and Description |
---|---|
static Config |
INSTANCE
Config Singleton that stores paths to the database and the papio directory
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAutoResponse()
The default response to CLI (y/n) prompts in case the cliConfirm variable is set to false
|
boolean |
getCliConfirm()
If set to true, certain CLI actions will require a manual (y/n) prompt to continue-
|
java.io.File |
getDbPath()
The path to the SQLite database
|
java.io.File |
getPapioPath()
The path to the .papio directory
|
void |
setAutoResponse(java.lang.String p)
The default response to CLI (y/n) prompts in case the cliConfirm variable is set to false
|
void |
setCliConfirm(boolean p)
If set to true, certain CLI actions will require a manual (y/n) prompt to continue-
|
void |
setDbPath(java.io.File p)
The path to the SQLite database
|
void |
setPapioPath(java.io.File p)
The path to the .papio directory
|
public static Config INSTANCE
Config Singleton that stores paths to the database and the papio directory
public java.io.File getPapioPath()
The path to the .papio directory
public void setPapioPath(java.io.File p)
The path to the .papio directory
public java.io.File getDbPath()
The path to the SQLite database
public void setDbPath(java.io.File p)
The path to the SQLite database
public boolean getCliConfirm()
If set to true, certain CLI actions will require a manual (y/n) prompt to continue-
public void setCliConfirm(boolean p)
If set to true, certain CLI actions will require a manual (y/n) prompt to continue-
public java.lang.String getAutoResponse()
The default response to CLI (y/n) prompts in case the cliConfirm variable is set to false
public void setAutoResponse(java.lang.String p)
The default response to CLI (y/n) prompts in case the cliConfirm variable is set to false