@fishawack/lab-env 4.31.0 → 4.32.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Changelog
2
2
 
3
+ ### 4.32.1 (2024-07-15)
4
+ * [Bug] added more ci skip steps to dianose command
5
+
6
+ ### 4.32.0 (2024-07-12)
7
+ * [Feature] added ci flag to skip creating ssh keys
8
+
3
9
  ### 4.31.0 (2024-07-12)
4
10
  * [Feature] added legacy flag for diagnosis to skip unneccessary steps
5
11
  * [Feature] added -y and -p flags to diag to skip prompts
@@ -30,6 +30,11 @@ module.exports = [
30
30
  describe: 'Run the legacy diagnosis steps. When omitted it will be default true for permanent users and false for everyone else',
31
31
  type: "boolean"
32
32
  });
33
+
34
+ yargs.option('ci', {
35
+ describe: 'Optimized for non-interactive performance',
36
+ type: "boolean"
37
+ });
33
38
  },
34
39
  async argv => {
35
40
  try{
@@ -49,8 +54,10 @@ module.exports = [
49
54
  await guide.ssh(argv);
50
55
  };
51
56
 
52
- while(!await test.key()){
53
- await guide.key(argv);
57
+ if(!argv.ci){
58
+ while(!await test.key()){
59
+ await guide.key(argv);
60
+ }
54
61
  }
55
62
 
56
63
  while(!await test.config()){
@@ -76,9 +83,11 @@ module.exports = [
76
83
  }
77
84
  }
78
85
 
79
- while(!await test.egnyte() || !await egnyte.check()){
80
- await guide.egnyte(argv);
81
- };
86
+ if(!argv.ci){
87
+ while(!await test.egnyte() || !await egnyte.check()){
88
+ await guide.egnyte(argv);
89
+ };
90
+ }
82
91
 
83
92
  if(argv.legacy){
84
93
  while(!await test.watertight()){
@@ -92,8 +101,10 @@ module.exports = [
92
101
  await guide.misc(argv);
93
102
  };
94
103
 
95
- while(!await test.bitbucket() || !await bitbucket.check()){
96
- await guide.bitbucket(argv);
104
+ if(!argv.ci){
105
+ while(!await test.bitbucket() || !await bitbucket.check()){
106
+ await guide.bitbucket(argv);
107
+ }
97
108
  }
98
109
 
99
110
  if(argv.legacy){
@@ -104,14 +115,16 @@ module.exports = [
104
115
  }
105
116
  }
106
117
 
107
- const userRepoName = vars.misc.bitbucket.username.split('@')[0].replace(/\./, '-');
108
-
109
- // Check ability to create and delete Bitbucket repos
110
- if(!await bitbucket.exists(userRepoName)){
111
- await bitbucket.fork(userRepoName, {name: 'boilerplate'});
118
+ if(!argv.ci){
119
+ const userRepoName = vars.misc.bitbucket.username.split('@')[0].replace(/\./, '-');
120
+
121
+ // Check ability to create and delete Bitbucket repos
122
+ if(!await bitbucket.exists(userRepoName)){
123
+ await bitbucket.fork(userRepoName, {name: 'boilerplate'});
124
+ }
125
+
126
+ await bitbucket.remove(userRepoName);
112
127
  }
113
-
114
- await bitbucket.remove(userRepoName);
115
128
  }
116
129
 
117
130
  // Update diagnosis version in ~/.lab-env config file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-env",
3
- "version": "4.31.0",
3
+ "version": "4.32.1",
4
4
  "description": "Docker manager for FW",
5
5
  "main": "cli.js",
6
6
  "scripts": {