We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a386f06 commit de5f626Copy full SHA for de5f626
.github/dependabot.yml
@@ -0,0 +1,7 @@
1
+version: 2
2
+updates:
3
+ - package-ecosystem: composer
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ open-pull-requests-limit: 10
src/Cmd/CmdBuilder.php
@@ -10,6 +10,7 @@
10
namespace Toolkit\Sys\Cmd;
11
12
use Toolkit\Stdlib\Str;
13
+use function sprintf;
14
use function strpos;
15
16
/**
@@ -79,6 +80,18 @@ public function add($arg): self
79
80
return $this;
81
}
82
83
+ /**
84
+ * @param string $format
85
+ * @param mixed ...$a
86
+ *
87
+ * @return $this
88
+ */
89
+ public function addf(string $format, ...$a): self
90
+ {
91
+ $this->args[] = sprintf($format, ...$a);
92
+ return $this;
93
+ }
94
+
95
96
* @param string|int $arg
97
* @param bool $isOk
0 commit comments