@verdnatura/myt 1.6.5 → 1.6.6

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.
Files changed (2) hide show
  1. package/myt-run.js +7 -4
  2. package/package.json +1 -1
package/myt-run.js CHANGED
@@ -20,7 +20,8 @@ class Run extends Command {
20
20
  ci: 'Workaround for continuous integration system',
21
21
  network: 'Docker network to attach container to',
22
22
  random: 'Whether to use a random container name and port',
23
- tmpfs: 'Whether to use tmpfs mount for MySQL data'
23
+ tmpfs: 'Whether to use tmpfs mount for MySQL data',
24
+ keep: 'Keep container on failure'
24
25
  }
25
26
  };
26
27
 
@@ -29,12 +30,14 @@ class Run extends Command {
29
30
  ci: 'c',
30
31
  network: 'n',
31
32
  random: 'r',
32
- tmpfs: 't'
33
+ tmpfs: 't',
34
+ keep: 'k'
33
35
  },
34
36
  boolean: [
35
37
  'ci',
36
38
  'random',
37
- 'tmpfs'
39
+ 'tmpfs',
40
+ 'keep'
38
41
  ]
39
42
  };
40
43
 
@@ -208,7 +211,7 @@ class Run extends Command {
208
211
  return server;
209
212
  } catch (err) {
210
213
  try {
211
- await ct.rm({force: true});
214
+ if (!opts.keep) await ct.rm({force: true});
212
215
  } catch (e) {}
213
216
  throw err;
214
217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdnatura/myt",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "author": "Verdnatura Levante SL",
5
5
  "description": "MySQL version control",
6
6
  "license": "GPL-3.0",