@cloudbase/cli 2.6.0-alpha.0 → 2.6.0-alpha.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/lib/commands/fun/base.js +5 -5
- package/package.json +1 -1
package/lib/commands/fun/base.js
CHANGED
|
@@ -65,7 +65,7 @@ let FunListCommand = class FunListCommand extends common_1.Command {
|
|
|
65
65
|
let serverListRes = yield scfService
|
|
66
66
|
.request('DescribeCloudBaseRunServers', {
|
|
67
67
|
EnvId: envId,
|
|
68
|
-
Limit:
|
|
68
|
+
Limit: 100,
|
|
69
69
|
Offset: 0
|
|
70
70
|
})
|
|
71
71
|
.finally(() => loading.stop());
|
|
@@ -117,7 +117,7 @@ let FunDeployCommand = class FunDeployCommand extends common_1.Command {
|
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
flags: '--source <source>',
|
|
120
|
-
desc: '
|
|
120
|
+
desc: '目标函数文件所在目录路径。默认为当前路径'
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
flags: '--target <target>',
|
|
@@ -136,7 +136,7 @@ let FunDeployCommand = class FunDeployCommand extends common_1.Command {
|
|
|
136
136
|
const loadResult = yield (0, functions_framework_1.loadUserFunction)(source, target);
|
|
137
137
|
if (!(loadResult === null || loadResult === void 0 ? void 0 : loadResult.userFunction)) {
|
|
138
138
|
if (loadResult.reason.includes('is not a loadable module')) {
|
|
139
|
-
log.error(`${source}
|
|
139
|
+
log.error(`${source} 不是一个有效的函数式托管代码目录,可以通过 --source <source> 指定代码目录路径`);
|
|
140
140
|
}
|
|
141
141
|
else if (loadResult === null || loadResult === void 0 ? void 0 : loadResult.reason.includes('is not defined in the provided module')) {
|
|
142
142
|
log.error(`主文件并未导出目标函数 ${target},请导出 ${target} 目标函数或者通过 --target <target> 指定目标函数`);
|
|
@@ -165,7 +165,7 @@ let FunDeployCommand = class FunDeployCommand extends common_1.Command {
|
|
|
165
165
|
const fetchSvrRes = yield scfService.request('DescribeCloudBaseRunServer', {
|
|
166
166
|
EnvId: envId,
|
|
167
167
|
ServerName: serviceName,
|
|
168
|
-
Limit:
|
|
168
|
+
Limit: 1,
|
|
169
169
|
Offset: 0
|
|
170
170
|
});
|
|
171
171
|
if (fetchSvrRes.ServerName && fetchSvrRes.Tag !== 'function') {
|
|
@@ -284,7 +284,7 @@ let FunRunCommand = class FunRunCommand extends common_1.Command {
|
|
|
284
284
|
options: [
|
|
285
285
|
{
|
|
286
286
|
flags: '--source <source>',
|
|
287
|
-
desc: '
|
|
287
|
+
desc: '目标函数文件所在目录路径,默认为当前路径'
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
flags: '--port <port>',
|