Compare commits

...

2 commits

Author SHA1 Message Date
927b549794 Minor cleanup 2023-08-28 14:37:42 -07:00
c32682dafc Addeded support for collections are arguments 2023-08-28 14:36:12 -07:00
3 changed files with 5 additions and 2 deletions

1
.idea/misc.xml generated
View file

@ -8,6 +8,7 @@
<option name="customRuleSets">
<list>
<option value="$PROJECT_DIR$/config/pmd.xml" />
<option value="K:\java\semver\config\pmd.xml" />
</list>
</option>
<option name="options">

View file

@ -1,4 +1,4 @@
# [b<span style="color:orange">l</span>d](https://rife2.com/bldb) Command Line Execution Extension
# [b<span style="color:orange">l</span>d](https://rife2.com/bld) Command Line Execution Extension
[![License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Java](https://img.shields.io/badge/java-17%2B-blue)](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)

View file

@ -48,6 +48,8 @@ public class ExecOperation extends AbstractOperation<ExecOperation> {
* <li>{@code command("cmd", "/c", "stop.bat")}</li>
* <li>{@code command("./stop.sh"}</li>
* </ul></p>
*
* @see #command(Collection)
*/
public ExecOperation command(String... arg) {
args_.addAll(List.of(arg));
@ -59,7 +61,7 @@ public class ExecOperation extends AbstractOperation<ExecOperation> {
*
* @see #command(String...)
*/
public ExecOperation command(List<String> args) {
public ExecOperation command(Collection<String> args) {
args_.addAll(args);
return this;
}