com.wassilak.emDNS.cli.Cli Maven / Gradle / Ivy
The newest version!
package com.wassilak.emDNS.cli;
/**
* The Cli interface defines the behavior of the Cli object, which interprets command line arguments and performs the
* given emDNS tasks. Any errors are printed to stdErr. All output is printed to stdOut.
*
* Copyright (C) 2016 John Wassilak ([email protected])
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see
* http://www.gnu.org/licenses/.
*/
public interface Cli {
/**
* The USAGE constant contains the usage message to be presented to the user for help.
*/
String USAGE = "usage: java -jar emDNS.jar --emomHost EMOM_HOST --emomUser EMOM_USER " +
"--emomPassword EMOM_PASSWORD --emomAddress EMOM_ADDRESS OPTIONS\n" +
" --update HOSTNAME IPADDRESS\n" +
" --resolve HOSTNAME";
/**
* The executeCommand method executes emDNS functionality based on the given arguments. Any exceptions that occur
* are printed to stdErr. Any output is printed to stdOut.
*
* @param args The arguments to be interpreted.
*/
void executeCommand(String[] args);
}