@cloud-cli/dx 1.8.1 → 1.8.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.
@@ -10,7 +10,7 @@ interface ContainerName {
10
10
  export declare function getLogs({ name, lines }: GetLogsOptions): Promise<string>;
11
11
  export declare function startAll(_: any, cli: any): Promise<boolean>;
12
12
  export declare function refreshContainer(options: ContainerName, { run }: ServerParams): Promise<void>;
13
- export declare function restartContainer(options: ContainerName, { run }: ServerParams): Promise<void>;
13
+ export declare function restartContainer(options: ContainerName, { run }: ServerParams): Promise<string>;
14
14
  export declare function startContainer(options: ContainerName, { run }: ServerParams): Promise<boolean>;
15
15
  export declare function stopContainer(options: ContainerName, { run }: ServerParams): Promise<boolean>;
16
16
  export {};
@@ -50,6 +50,7 @@ export async function restartContainer(options, { run }) {
50
50
  const { name } = options;
51
51
  await run('dx.stop', { name });
52
52
  await run('dx.start', { name });
53
+ return name;
53
54
  }
54
55
  export async function startContainer(options, { run }) {
55
56
  const { name } = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud-cli/dx",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "Docker container management",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",