esa-cli 0.0.1-beta.2 → 0.0.1-beta.4

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.
@@ -36,7 +36,6 @@ export function handleDelete(argv) {
36
36
  return;
37
37
  const routineName = argv.routineName;
38
38
  const req = { Name: routineName };
39
- console.log(2);
40
39
  return yield deleteRoutineFromUserAccount(req);
41
40
  });
42
41
  }
@@ -29,23 +29,7 @@ const list = {
29
29
  command: 'list',
30
30
  describe: `📋 ${t('list_describe').d('List all your routines')}`,
31
31
  builder: (yargs) => {
32
- return (yargs
33
- // .positional('deployment', {
34
- // type: 'string',
35
- // description: t('list_deployment_positional_describe').d(
36
- // '(Optional) ID or URL of the deployment to tail. Specify by environment if deployment ID is unknown.'
37
- // ),
38
- // demandOption: true
39
- // })
40
- // .option('site', {
41
- // alias: 's',
42
- // describe: t('list_site_option_describe').d(
43
- // 'List all site names of your account'
44
- // ),
45
- // type: 'boolean',
46
- // default: false
47
- // })
48
- .usage(`${t('common_usage').d('Usage')}: \$0 list []`));
32
+ return yargs.usage(`${t('common_usage').d('Usage')}: \$0 list []`);
49
33
  },
50
34
  handler: (argv) => __awaiter(void 0, void 0, void 0, function* () {
51
35
  handleList(argv);
@@ -85,15 +69,13 @@ export function handleList(argv) {
85
69
  export function displayRoutineList(versionList) {
86
70
  return __awaiter(this, void 0, void 0, function* () {
87
71
  const table = new Table({
88
- head: ['Name', 'Created', 'Description', 'Specification']
72
+ head: ['Name', 'Created', 'Description']
89
73
  });
90
74
  versionList.forEach((version) => {
91
- var _a;
92
75
  table.push([
93
76
  version.RoutineName,
94
77
  new Date(version.CreateTime).toLocaleString(),
95
- Base64.decode(version.Description),
96
- (_a = version.SpecName) !== null && _a !== void 0 ? _a : ' '
78
+ Base64.decode(version.Description)
97
79
  ]);
98
80
  });
99
81
  console.log(table.toString());
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esa-cli",
3
- "version": "0.0.1-beta.2",
3
+ "version": "0.0.1-beta.4",
4
4
  "description": "A CLI for operating Alibaba Cloud ESA EdgeRoutine (Edge Functions).",
5
5
  "main": "bin/enter.cjs",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "alibaba",
28
28
  "ali"
29
29
  ],
30
- "author": "Kinice",
30
+ "author": "Kinice, Shengyuan Ma",
31
31
  "license": "MIT",
32
32
  "devDependencies": {
33
33
  "@babel/plugin-syntax-import-attributes": "^7.24.7",
@@ -58,7 +58,6 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@alicloud/openapi-client": "^0.4.7",
61
- "@alife/esa-cli-test": "^0.0.1-beta.1",
62
61
  "@babel/parser": "^7.24.4",
63
62
  "@babel/traverse": "^7.24.1",
64
63
  "@iarna/toml": "^2.2.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esa-cli",
3
- "version": "0.0.1-beta.2",
3
+ "version": "0.0.1-beta.4",
4
4
  "description": "A CLI for operating Alibaba Cloud ESA EdgeRoutine (Edge Functions).",
5
5
  "main": "bin/enter.cjs",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "alibaba",
28
28
  "ali"
29
29
  ],
30
- "author": "Kinice",
30
+ "author": "Kinice, Shengyuan Ma",
31
31
  "license": "MIT",
32
32
  "devDependencies": {
33
33
  "@babel/plugin-syntax-import-attributes": "^7.24.7",
@@ -58,7 +58,6 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@alicloud/openapi-client": "^0.4.7",
61
- "@alife/esa-cli-test": "^0.0.1-beta.1",
62
61
  "@babel/parser": "^7.24.4",
63
62
  "@babel/traverse": "^7.24.1",
64
63
  "@iarna/toml": "^2.2.5",