Git Product home page Git Product logo

ibmi-lib-repo's Introduction

IBMi-Lib-Repo

A tool for exporting all members from a library via FTP to create a git repository directory structure.

This was made to make taking notes on learning the IBMi easier and to prototype some logic for an IBMi API I'm writing.

Dependencies

  • Python 3.7
    • progress
  • IBMi with FTP enabled and user with correct authorities

Example

  • Example of my personal library, BOLIB, found in ./out.
  • config.json file included as config.example.json.

Usage

  • Generate library repo for existing configuration with credentials promptpython IBMi-lib-repo.py -e barrett-test
  • Generate library repo for existing configuration with credentials passedpython IBMi-lib-repo.py -e barrett-test --creds MYUSER MYPASSWORD
  • Setup new configuration and generate library repo python IBMi-lib-repo.py -n
  • Show help info python IBMi-lib-repo.py -h

References

ibmi-lib-repo's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

benwleon itsophie

ibmi-lib-repo's Issues

Option to inject formatting into files

  • Beginning of data and end of data lines
  • Column number header at top of each file (except DDS)
  • Specific format specs for RPGLE and DDS
    • Inject when each format spec is come across for the first time
  • Record numbers

LF Example

 FMT LF .....A..........T.Name++++++.Len++TDpB......Functions++++++++++++++++++
        *************** Beginning of data ************************************* 
0001.00                 R PERSONFMT                 PFILE(PERSON)
0002.00                 K LASTNAME
        *****************  End of data ****************************************

RPGLE Example

 FMT ** ... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+.
        *************** Beginning of data *************************************
0001.00 H
 FMT D  DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++
0002.00 D num1            S              5S 0
0003.00 D num2            S              5P 0
0004.00 D num3            S              5S 2
0005.00 D num4            S              5P 3
0006.00 D date1           S               D
0007.00 D time1           S               T
0008.00 D timestamp       S               Z
0009.00 D flag            S              1N
0010.00 D PI              C                    3.14
0011.00 D name            S             20A
0011.00  *
0012.00  /free
0013.00    num1 = %Rem(14:5);
0014.00    Dsply num1;             //
0015.00    *INLR = *ON;
0016.00  /end-free
        ****************** End of data ****************************************

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.