abapgit-agent 1.8.4 → 1.8.5
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/package.json +1 -1
- package/src/commands/view.js +7 -3
package/package.json
CHANGED
package/src/commands/view.js
CHANGED
|
@@ -71,7 +71,11 @@ module.exports = {
|
|
|
71
71
|
// Check if object was not found
|
|
72
72
|
if (notFound) {
|
|
73
73
|
console.log(` ❌ ${objName} (${objTypeText})`);
|
|
74
|
-
|
|
74
|
+
if (description) {
|
|
75
|
+
console.log(` ${description}`);
|
|
76
|
+
} else {
|
|
77
|
+
console.log(` Object not found: ${objName}`);
|
|
78
|
+
}
|
|
75
79
|
continue;
|
|
76
80
|
}
|
|
77
81
|
|
|
@@ -80,9 +84,9 @@ module.exports = {
|
|
|
80
84
|
console.log(` ${description}`);
|
|
81
85
|
}
|
|
82
86
|
|
|
83
|
-
// Display source code for classes, interfaces, CDS views,
|
|
87
|
+
// Display source code for classes, interfaces, CDS views, programs/source includes, and STOB
|
|
84
88
|
const source = obj.SOURCE || obj.source || '';
|
|
85
|
-
if (source && (objType === 'INTF' || objType === 'Interface' || objType === 'CLAS' || objType === 'Class' || objType === 'DDLS' || objType === 'CDS View' || objType === 'PROG' || objType === 'Program')) {
|
|
89
|
+
if (source && (objType === 'INTF' || objType === 'Interface' || objType === 'CLAS' || objType === 'Class' || objType === 'DDLS' || objType === 'CDS View' || objType === 'PROG' || objType === 'Program' || objType === 'STOB' || objType === 'Structured Object')) {
|
|
86
90
|
console.log('');
|
|
87
91
|
// Replace escaped newlines with actual newlines and display
|
|
88
92
|
const displaySource = source.replace(/\\n/g, '\n');
|