@cloud-cli/dc 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ async function stop(options) {
|
|
|
20
20
|
if (!existsSync(path)) {
|
|
21
21
|
throw notFoundError;
|
|
22
22
|
}
|
|
23
|
-
const out = await exec("docker", ["compose", "
|
|
23
|
+
const out = await exec("docker", ["compose", "-f", path, "down"]);
|
|
24
24
|
if (out.ok) {
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
@@ -32,7 +32,7 @@ async function start(options) {
|
|
|
32
32
|
if (!existsSync(path)) {
|
|
33
33
|
throw notFoundError;
|
|
34
34
|
}
|
|
35
|
-
const out = await exec("docker", ["compose", "
|
|
35
|
+
const out = await exec("docker", ["compose", "-f", path, "up"]);
|
|
36
36
|
if (out.ok) {
|
|
37
37
|
return true;
|
|
38
38
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -31,7 +31,7 @@ async function stop(options: CliOptions) {
|
|
|
31
31
|
throw notFoundError;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
const out = await exec("docker", ["compose", "
|
|
34
|
+
const out = await exec("docker", ["compose", "-f", path, "down"]);
|
|
35
35
|
|
|
36
36
|
if (out.ok) {
|
|
37
37
|
return true;
|
|
@@ -48,7 +48,7 @@ async function start(options: CliOptions) {
|
|
|
48
48
|
throw notFoundError;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
const out = await exec("docker", ["compose", "
|
|
51
|
+
const out = await exec("docker", ["compose", "-f", path, "up"]);
|
|
52
52
|
|
|
53
53
|
if (out.ok) {
|
|
54
54
|
return true;
|