pdi-util command - github.com/Soontao/pdi-util - Go Packages

pdi-util

command module
v1.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 17 Imported by: 0

README

SAP PDI Util Tools

CircleCI

Cli for SAP PDI

Latest Build

Just download latest binary files from Github Release Page

Help

bash> pdi-util
NAME:
   PDI Util - A cli util for SAP PDI

USAGE:
   pdi-util [global options] command [command options] [arguments...]

VERSION:
   SNAPSHOT

COMMANDS:
     check     code static check
     session   session related operations
     solution  solution related operations
     source    source code related operations
     help, h   Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --username value, -u value  The PDI Development User [$PDI_USER]
   --password value, -p value  The PDI Development User Password [$PDI_PASSWORD]
   --hostname value, -t value  The PDI Tenant host [$PDI_TENANT_HOST]
   --help, -h                  show help
   --version, -v               print the version

Almost all options can be configured in the system environment variables.

Solution Operations

list all solutions
bash> pdi-util -u USER -p PASS -t myxxxxx.c4c.saphybriscloud.com solution list 
+----------+----------------+----------------+------------+----------+-------+
|   NAME   |   DESCRIPTION  |     STATUS     |  CUSTOMER  |  CONTACT | EMAIL |
+----------+----------------+----------------+------------+----------+-------+
| Removed  | Removed        | Deployed       |            | Removed  |       |
| Removed  | Removed        | In Development |            | Removed  |       |
+----------+----------------+----------------+------------+----------+-------+

Source Operations

download source from repo

Extremely fast, download with 35 goroutines defaultly.

(PDI download project files one by one in a single thread).

bash> pdi-util -u USER -p PASS -t myxxxxx.c4c.saphybriscloud.com source download -s YQABCDEFG_ 
2018/11/24 21:20:52 Will download 1226 files to /Users/theosun/go/src/github.com/Soontao/pdi-util/output
1226 / 1226  100.00% 34s
2018/11/24 21:21:26 Done

Static Check

bash> pdi-util -u USER -p PASS -t myxxxxx.c4c.saphybriscloud.com check header -s YQABCDEFG_
2018/11/25 16:13:08 Will check 532 ABSL/BO/XBO Defination
 532 / 532  100.00% 5s
2018/11/25 16:13:14 Not found copyright header in: /API/XXXXXXX.absl
...
...
2018/11/25 16:13:14 Totally 247 files (of 532) lost copyright header
name convension check

check name convension of source code filename

bash> pdi-util -u USER -p PASS -t myxxxxx.c4c.saphybriscloud.com check name -s YQABCDEFG_
2018/12/03 20:13:50 Name Convension BPM\CSD_BPMSystem.csd: filename should be CS_BPMSystem.csd
2018/12/03 20:13:50 Name Convension HCM\EWSI_CH_USER_ID.csd: filename should be CS_CH_USER_ID.csd
2018/12/03 20:13:50 Name Convension _Common\DT_MDRInputData.bo: filename should be BO_MDRInputData.bo
2018/12/03 20:13:50 Name Convension _EXT\EBO_ServiceRequest.xbo: filename should be BOE_ServiceRequest.xbo
2018/12/03 20:13:50 finished
backend check

execute runtime check on backend

support follow files now

{
  ".absl": "ABSL",
  ".bo":   "BUSINESS_OBJECT",
  ".qry":  "QUERYDEF",
  ".xbo":  "EXTENSION_ENTITY",
  ".bco":  "BCO",
  ".bcc":  "BCSET",
  ".uicomponent": "UICOMPONENT"
}

extremely fast !

bash> pdi-util -u USER -p PASS -t myxxxxx.c4c.saphybriscloud.com check backend -s YQABCDEFG_
 133 / 133  100.00% 1s
2018/12/04 22:27:08 [W] CustomBO.bo(8 ,26 ): Use of data type 'Description' is not supported in queries
2018/12/04 22:27:08 [W] CustomBO.bo(8 ,26 ): Do not store external document data in unrestricted data type 'Description'. Recommendation is to use Attachment Folder (refer SDK Help Documentation Section 7.2.2.12). Please refer blog "Text Types Usage" in Community Forum for more on text data types.
...
...
2018/12/04 22:28:32 Finished
translation check

check translation status for specific language

bash> pdi-util -u USER -p PASS -t myxxxxx.c4c.saphybriscloud.com check translation -s YQABCDEFG_
 39 / 39  100.00% 0s
2018/12/05 20:35:12 For language Chinese, full translated, file(BOXXX.bo)
2018/12/05 20:35:12 For language Chinese, translated 0 text of 15, file(XXXX.bo)
2018/12/05 20:35:12 For language Chinese, full translated, file(XXXX.bo)
2018/12/05 20:35:12 For language Chinese, translated 0 text of 14, file(XXXXX.OIF.uicomponent)
2018/12/05 20:35:12 For language Chinese, translated 0 text of 17, file(XXXXX.OWL.uicomponent)
2018/12/05 20:35:12 For language Chinese, full translated, file(XXXXX.PTP.uicomponent)
2018/12/05 20:35:12 For language Chinese, translated 0 text of 11, file(XXXXX.QA.uicomponent)
2018/12/05 20:35:12 For language Chinese, full translated, file(BO_House.bo)
2018/12/05 20:35:12 Finished

CHNAGELOG

LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL