1 | package com.github.dakusui.actionunit.actions.cmd.unix; | |
2 | ||
3 | import com.github.dakusui.actionunit.actions.cmd.Commander; | |
4 | import com.github.dakusui.actionunit.actions.cmd.CommanderConfig; | |
5 | import com.github.dakusui.actionunit.core.Context; | |
6 | ||
7 | import java.io.File; | |
8 | import java.util.function.Function; | |
9 | ||
10 | import static java.util.Objects.requireNonNull; | |
11 | ||
12 | public class Mkdir extends Commander<Mkdir> { | |
13 | public Mkdir(CommanderConfig initializer) { | |
14 | super(initializer, "mkdir"); | |
15 | } | |
16 | ||
17 | public Mkdir recursive() { | |
18 |
1
1. recursive : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Mkdir::recursive → KILLED |
return this.addOption("-p"); |
19 | } | |
20 | ||
21 | public Mkdir dir(String path) { | |
22 |
1
1. dir : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Mkdir::dir → KILLED |
return this.add(path); |
23 | } | |
24 | ||
25 | public Mkdir dir(File path) { | |
26 |
1
1. dir : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Mkdir::dir → KILLED |
return this.dir(requireNonNull(path).getAbsolutePath()); |
27 | } | |
28 | ||
29 | public Mkdir dir(Function<Context, String> path) { | |
30 |
1
1. dir : replaced return value with null for com/github/dakusui/actionunit/actions/cmd/unix/Mkdir::dir → KILLED |
return this.add(requireNonNull(path)); |
31 | } | |
32 | } | |
Mutations | ||
18 |
1.1 |
|
22 |
1.1 |
|
26 |
1.1 |
|
30 |
1.1 |