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

pdi-util

command module
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 18 Imported by: 0

README

SAP PDI Util Tools

CircleCI

Cli for SAP PDI, expose PDI apis to cli environment. For research.

Latest Build

Just download latest binary files from Github Release Page

Help

bash> pdi-util
NAME:
   PDI Util - A Command Line Tool for SAP Partner Development IDE

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

VERSION:
   SNAPSHOT

COMMANDS:
     check     static check
     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

Normally, just use check all sub command, it will do all available check & save result to excel file.

NAME:
   PDI Util check - static code check

USAGE:
   PDI Util check command [command options] [arguments...]

COMMANDS:
     all          do all check to file
     header       check copyright header
     backend      do backend check
     translation  do translation check
     name         check name convension

OPTIONS:
   --help, -h  show help
Check All

example:

bash> pdi-util -u USER -p PASS -t myxxxxx.c4c.saphybriscloud.com check all -s YQABCDEFG_
2018/12/31 09:52:59 Starting Backend Check...
2018/12/31 09:53:06 Backend Check Finished
2018/12/31 09:53:06 StartingTranslation Check...
2018/12/31 09:53:07 Translation Check Finished
2018/12/31 09:53:08 Copyright Header Check Finished
2018/12/31 09:53:08 Name Convention Check Finished
2018/12/31 09:53:08 In-Active File Check Finished
2018/12/31 09:53:08 Start Generating Excel File...
2018/12/31 09:53:08 Save Check Result File to check_all.xlsx

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