@airmoney-degn/airmoney-cli 0.19.3 → 0.19.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.
package/dist/cli/dapp.js CHANGED
@@ -19,6 +19,23 @@ async function dappStatusCommand() {
19
19
  return;
20
20
  }
21
21
  (0, LogService_1.log)(`Found ${dapps.length} dapp(s)`).green();
22
+ // Define column widths (Status needs to be wider to accommodate "Waiting", "Pending", etc.)
23
+ const widths = [5, 20, 10, 15, 20, 15, 16, 15];
24
+ const headers = [
25
+ 'No',
26
+ 'Name',
27
+ 'Version',
28
+ 'Author',
29
+ 'Identifier',
30
+ 'Maintainer',
31
+ 'Digest',
32
+ 'Status',
33
+ ];
34
+ // Print table header once
35
+ (0, format_1.printTableRow)(headers, widths, true);
36
+ (0, format_1.printSeparator)(widths);
37
+ // Track row number across all dapps
38
+ let rowNumber = 0;
22
39
  // Fetch details for each dapp
23
40
  for (let i = 0; i < dapps.length; i++) {
24
41
  const dappName = dapps[i];
@@ -33,23 +50,9 @@ async function dappStatusCommand() {
33
50
  (0, LogService_1.log)(' No builds found for this dapp').italic().white();
34
51
  continue;
35
52
  }
36
- // Define column widths (Status needs to be wider to accommodate "Waiting", "Pending", etc.)
37
- const widths = [20, 10, 15, 20, 15, 16, 15];
38
- const headers = [
39
- 'Name',
40
- 'Version',
41
- 'Author',
42
- 'Identifier',
43
- 'Maintainer',
44
- 'Digest',
45
- 'Status',
46
- ];
47
- // Print table header
48
- // log('').white();
49
- (0, format_1.printTableRow)(headers, widths, true);
50
- (0, format_1.printSeparator)(widths);
51
53
  // Print table rows
52
54
  buildsWithMeta.forEach(build => {
55
+ rowNumber++;
53
56
  const digest = build.package_digest || 'N/A';
54
57
  const shortenedDigest = (0, format_1.shortenString)(digest);
55
58
  // Color code status
@@ -74,6 +77,7 @@ async function dappStatusCommand() {
74
77
  statusReset = '\x1b[0m';
75
78
  }
76
79
  const row = [
80
+ rowNumber.toString(),
77
81
  build.name || 'N/A',
78
82
  build.version || 'N/A',
79
83
  build.author || 'N/A',
package/dist/config.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.19.3"
2
+ "version": "0.19.4"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airmoney-degn/airmoney-cli",
3
- "version": "0.19.3",
3
+ "version": "0.19.4",
4
4
  "description": "airmoney-cli is a command-line interface tool designed to facilitate the development and management of decentralized applications (DApps) for Airmoney.",
5
5
  "publishConfig": {
6
6
  "access": "public"