Improved class reference documentation. Fix IPM package
The purpose of this package is to collect a set of general-purpose utility classes, similar to ‘commons’ packages available for other programming languages (such as Java).
Feel free to comment, review and contribute !
Once you clone the new repo to your laptop and open VSCode (with the InterSystems ObjectScript Extension Pack installed) you’ll be able to start development immediately.
Documentation is available in the class reference (see http://localhost:your_web_port/csp/documatic/%25CSP.Documatic.cls) and some examples in the unit tests.
Both are still sparse, I’m working on it ;-)
Make sure you have git and Docker desktop installed.
Clone/git pull the repo into any local directory
$ git clone https://github.com/theanor/ks-iris-lib.git
Open the terminal in this directory and call the command to build and run InterSystems IRIS in container:
Note: Users running containers on a Linux CLI, should use “docker compose” instead of “docker-compose”
See Install the Compose plugin
$ docker-compose up -d
To open IRIS Terminal do:
$ docker-compose exec iris iris session iris -U USER
DEV>
To exit the terminal, do any of the following:
Enter HALT or H (not case-sensitive)
This repository is ready to code in VSCode with the ObjectScript plugin.
Install VSCode, Docker and the InterSystems ObjectScript Extension Pack plugin and open the folder in VSCode.
Open the /src/cls/PackageSample/ObjectScript.cls
class and make changes - it will be compiled in the running IRIS docker container.
Feel free to delete the PackageSample folder and place your ObjectScript classes in the form
/src/organisation/package/Classname.cls
Read more about folder setup for InterSystems ObjectScript and here on the naming convention
To run test, use VSCode test harness or zpm :
USER> zpm "ks-lib test -v"
Contains two GitHub actions workflows:
github-registry.yml
objectscript-qaulity.yml
Both workflows are repo agnostic: so they work with any repository where they exist.
Contains two files to setup vscode environment:
Settings file to let you immediately code in VSCode with VSCode ObjectScript plugin)
Config file if you want to debug with VSCode ObjectScript
Contains source files.
src/iris contains InterSystems IRIS Objectscript code
Contains unit tests for the ObjectScript classes
A docker engine helper file to manage images building and rule ports mapping an the host to container folders(volumes) mapping
The simplest dockerfile which starts IRIS and imports code from /src folder into it.
Use the related docker-compose.yml to easily setup additional parametes like port number and where you map keys and host folders.
Contains objectscript commands that are feeded to iris during the image building
IPM Module’s description of the code in the repository.
It describes what is loaded with the method, how it is being tested and what apps neeed to be created, what files need to be copied.
Read about all the files in this artilce
If you have issues with docker image building here are some recipes that could help.
docker system prune -f