underpost 2.8.821 → 2.8.836

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/src/index.js CHANGED
@@ -16,6 +16,7 @@ import UnderpostImage from './cli/image.js';
16
16
  import UnderpostLxd from './cli/lxd.js';
17
17
  import UnderpostMonitor from './cli/monitor.js';
18
18
  import UnderpostRepository from './cli/repository.js';
19
+ import UnderpostRun from './cli/run.js';
19
20
  import UnderpostScript from './cli/script.js';
20
21
  import UnderpostSecret from './cli/secrets.js';
21
22
  import UnderpostTest from './cli/test.js';
@@ -33,102 +34,102 @@ class Underpost {
33
34
  * @type {String}
34
35
  * @memberof Underpost
35
36
  */
36
- static version = 'v2.8.821';
37
+ static version = 'v2.8.836';
37
38
  /**
38
39
  * Repository cli API
39
40
  * @static
40
- * @type {UnderpostRepository}
41
+ * @type {UnderpostRepository.API}
41
42
  * @memberof Underpost
42
43
  */
43
44
  static repo = UnderpostRepository.API;
44
45
  /**
45
46
  * Root Env cli API
46
47
  * @static
47
- * @type {UnderpostRootEnv}
48
+ * @type {UnderpostRootEnv.API}
48
49
  * @memberof Underpost
49
50
  */
50
51
  static env = UnderpostRootEnv.API;
51
52
  /**
52
53
  * Test cli API
53
54
  * @static
54
- * @type {UnderpostTest}
55
+ * @type {UnderpostTest.API}
55
56
  * @memberof Underpost
56
57
  */
57
58
  static test = UnderpostTest.API;
58
59
  /**
59
60
  * Underpost Start Up cli API
60
61
  * @static
61
- * @type {UnderpostStartUp}
62
+ * @type {UnderpostStartUp.API}
62
63
  * @memberof Underpost
63
64
  */
64
65
  static start = UnderpostStartUp.API;
65
66
  /**
66
67
  * Cluster cli API
67
68
  * @static
68
- * @type {UnderpostCluster}
69
+ * @type {UnderpostCluster.API}
69
70
  * @memberof Underpost
70
71
  */
71
72
  static cluster = UnderpostCluster.API;
72
73
  /**
73
74
  * Image cli API
74
75
  * @static
75
- * @type {UnderpostImage}
76
+ * @type {UnderpostImage.API}
76
77
  * @memberof Underpost
77
78
  */
78
79
  static image = UnderpostImage.API;
79
80
  /**
80
81
  * Secrets cli API
81
82
  * @static
82
- * @type {UnderpostSecret}
83
+ * @type {UnderpostSecret.API}
83
84
  * @memberof Underpost
84
85
  */
85
86
  static secret = UnderpostSecret.API;
86
87
  /**
87
88
  * Scripts cli API
88
89
  * @static
89
- * @type {UnderpostScript}
90
+ * @type {UnderpostScript.API}
90
91
  * @memberof Underpost
91
92
  */
92
93
  static script = UnderpostScript.API;
93
94
  /**
94
95
  * Database cli API
95
96
  * @static
96
- * @type {UnderpostDB}
97
+ * @type {UnderpostDB.API}
97
98
  * @memberof Underpost
98
99
  */
99
100
  static db = UnderpostDB.API;
100
101
  /**
101
102
  * Deployment cli API
102
103
  * @static
103
- * @type {UnderpostDeploy}
104
+ * @type {UnderpostDeploy.API}
104
105
  * @memberof Underpost
105
106
  */
106
107
  static deploy = UnderpostDeploy.API;
107
108
  /**
108
109
  * Cron cli API
109
110
  * @static
110
- * @type {UnderpostCron}
111
+ * @type {UnderpostCron.API}
111
112
  * @memberof Underpost
112
113
  */
113
114
  static cron = UnderpostCron.API;
114
115
  /**
115
116
  * File Storage cli API
116
117
  * @static
117
- * @type {UnderpostFileStorage}
118
+ * @type {UnderpostFileStorage.API}
118
119
  * @memberof Underpost
119
120
  */
120
121
  static fs = UnderpostFileStorage.API;
121
122
  /**
122
123
  * Monitor cli API
123
124
  * @static
124
- * @type {UnderpostMonitor}
125
+ * @type {UnderpostMonitor.API}
125
126
  * @memberof Underpost
126
127
  */
127
128
  static monitor = UnderpostMonitor.API;
128
129
  /**
129
130
  * LXD cli API
130
131
  * @static
131
- * @type {UnderpostLxd}
132
+ * @type {UnderpostLxd.API}
132
133
  * @memberof Underpost
133
134
  */
134
135
  static lxd = UnderpostLxd.API;
@@ -136,15 +137,23 @@ class Underpost {
136
137
  /**
137
138
  * Cloud Init cli API
138
139
  * @static
139
- * @type {UnderpostCloudInit}
140
+ * @type {UnderpostCloudInit.API}
140
141
  * @memberof Underpost
141
142
  */
142
143
  static cloudInit = UnderpostCloudInit.API;
143
144
 
145
+ /**
146
+ * Run cli API
147
+ * @static
148
+ * @type {UnderpostRun.API}
149
+ * @memberof Underpost
150
+ */
151
+ static run = UnderpostRun.API;
152
+
144
153
  /**
145
154
  * Baremetal cli API
146
155
  * @static
147
- * @type {UnderpostBaremetal}
156
+ * @type {UnderpostBaremetal.API}
148
157
  * @memberof Underpost
149
158
  */
150
159
  static baremetal = UnderpostBaremetal.API;
@@ -1171,7 +1171,7 @@ const writeEnv = (envPath, envObj) =>
1171
1171
  'utf8',
1172
1172
  );
1173
1173
 
1174
- const buildCliDoc = (program) => {
1174
+ const buildCliDoc = (program, oldVersion, newVersion) => {
1175
1175
  let md = shellExec(`node bin help`, { silent: true, stdout: true }).split('Options:');
1176
1176
  const baseOptions =
1177
1177
  `## ${md[0].split(`\n`)[2]}
@@ -1207,13 +1207,15 @@ const buildCliDoc = (program) => {
1207
1207
  `
1208
1208
  `;
1209
1209
  });
1210
+ md = md.replaceAll(oldVersion, newVersion);
1210
1211
  fs.writeFileSync(`./src/client/public/nexodev/docs/references/Command Line Interface.md`, md, 'utf8');
1211
1212
  fs.writeFileSync(`./cli.md`, md, 'utf8');
1212
1213
  const readmeSplit = `pwa-microservices-template</a>`;
1213
1214
  const readme = fs.readFileSync(`./README.md`, 'utf8').split(readmeSplit);
1214
1215
  fs.writeFileSync(
1215
1216
  './README.md',
1216
- readme[0] +
1217
+ (
1218
+ readme[0] +
1217
1219
  readmeSplit +
1218
1220
  `
1219
1221
 
@@ -1223,7 +1225,8 @@ const buildCliDoc = (program) => {
1223
1225
 
1224
1226
  <a target="_top" href="https://github.com/underpostnet/pwa-microservices-template/blob/master/cli.md">See complete CLI Docs here.</a>
1225
1227
 
1226
- `,
1228
+ `
1229
+ ).replaceAll(oldVersion, newVersion),
1227
1230
  'utf8',
1228
1231
  );
1229
1232
  };