wniemiec.io.java.InputTerminal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of terminal Show documentation
Show all versions of terminal Show documentation
Utility for executing commands in a terminal.
The newest version!
/**
* Copyright (c) William Niemiec.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package wniemiec.io.java;
import java.io.IOException;
/**
* Responsible for handling terminal input.
*/
public interface InputTerminal {
/**
* Run commands in terminal.
*
* @param commands Terminal commands
*
* @throws IOException If terminal cannot be executed
*/
void exec(String... commands) throws IOException;
}