Package org.duracloud.common.util
Class CommandLineToolUtil
- java.lang.Object
-
- org.duracloud.common.util.CommandLineToolUtil
-
public class CommandLineToolUtil extends Object
Class that can be used for command line tools that read a DuraCloud password from an evironment variable or need to prompt users for input from the command line.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPASSWORD_ENV_VARIABLE_NAME
-
Constructor Summary
Constructors Constructor Description CommandLineToolUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsolePromptgetConsole()StringgetPasswordEnvVariable()
-
-
-
Field Detail
-
PASSWORD_ENV_VARIABLE_NAME
public static final String PASSWORD_ENV_VARIABLE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPasswordEnvVariable
public String getPasswordEnvVariable()
-
getConsole
public ConsolePrompt getConsole()
-
-