Skip to content

Commit

Permalink
release 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrdjan committed Jan 27, 2021
1 parent cf1f6ed commit cec53f1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion abap-api-tools/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# abap ui tools<!-- omit in toc -->
# abap api tools<!-- omit in toc -->

[![REUSE status](https://api.reuse.software/badge/github.com/SAP/fundamental-tools)](https://api.reuse.software/info/github.com/SAP/fundamental-tools)

Expand Down
4 changes: 2 additions & 2 deletions abap-api-tools/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion abap-api-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "abap-api-tools",
"description": "ABAP api tools",
"version": "0.8.0",
"version": "0.8.1",
"homepage": "https://github.com/sap/fundamental-tools",
"author": "SAP",
"license": "Apache-2.0",
Expand Down
37 changes: 18 additions & 19 deletions abap-api-tools/src/ts/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export class Backend {
this.annotations_clean();

log.info(
`\napi ${this.argv.dest}: ${chalk.bold(this.api_name)} language: ${
`\napi ${this.argv.dest} ${chalk.bold(this.api_name)} language: ${
this.argv.lang
} serch helps: ${
Object.keys(this.search_help_api).length > 0 ? "yes" : "no"
Expand Down Expand Up @@ -639,9 +639,9 @@ export class Backend {

if (p.functionName !== functionName) {
if (functionName) {
log.info(chalk(`\n${p.functionName}`));
log.info(`\n${p.functionName}`);
} else {
log.info(chalk(p.functionName));
log.info(p.functionName);
}
functionName = p.functionName as string;
// stat
Expand Down Expand Up @@ -708,26 +708,25 @@ export class Backend {
// parameter class
if (p.PARAMCLASS === ParamClass.exception) {
log.info(
chalk.grey(
sprintf("%-13s", `${ParamClassDesc[p.PARAMCLASS].toLowerCase()}`)
),
chalk.grey(sprintf(`%-${param_name_len}s`, p.paramName)),
chalk.grey(p.PARAMTEXT)
sprintf("%-15s", `${ParamClassDesc[p.PARAMCLASS].toLowerCase()}`),
sprintf(`%-${param_name_len}s`, p.paramName),
p.PARAMTEXT
);
} else {
log.info(
chalk.grey(
sprintf(
"%-13s",
`${ParamClassDesc[p.PARAMCLASS as string].toLowerCase()} ${
p.paramType === ParamClass.table ? "" : p.paramType // table table -> table
}`
)
sprintf(
"%-15s",
`${ParamClassDesc[p.PARAMCLASS as string].toLowerCase()} ${
p.paramType === ParamClass.table ? "" : p.paramType // table table -> table
}`
),
chalk[p.nativeKey ? "red" : "grey"](
sprintf(`%-${param_name_len}s`, p.paramName) // native ABAP type, no ddic warning
),
chalk.grey(p.PARAMTEXT)
sprintf(`%-${param_name_len}s`, p.paramName), // native ABAP type, no ddic warning
p.nativeKey
? chalk.red(
"native! " + p.PARAMTEXT ||
`No text in language: ${this.argv.lang}`
)
: p.PARAMTEXT || `No text in language: ${this.argv.lang}`
);
}
}
Expand Down

0 comments on commit cec53f1

Please sign in to comment.