Skip to content

Removes system ($) methods from the codebase. Tool for InterSystems Caché

License

Notifications You must be signed in to change notification settings

rcemper/PR_SystemMethodsRemover

This branch is 1 commit ahead of intersystems-community/SystemMethodsRemover:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0d1e37a · May 24, 2024

History

14 Commits
May 24, 2024
May 24, 2024
Jan 31, 2017
May 24, 2024
May 24, 2024
May 24, 2024
May 24, 2024
Sep 29, 2016
May 24, 2024
May 24, 2024
May 24, 2024
May 24, 2024
May 24, 2024
May 24, 2024
Sep 29, 2016

Repository files navigation

SystemMethodsRemover

Removes system ($) methods from the codebase. InterSystems Caché utility.

What it does?

  1. Replaces .$ with .<something of your choice> (.% by default)
  2. Capitalizes the letter after $
  3. Replaces references from %Object to %DynamicObject etc

Use

Import classes and call one of the entry points:

s st = ##class(SMR.Main).RemoveFromAllClasses(Replace, Capitalize) - for all user classes

s st = ##class(SMR.Main).RemoveFromSubclassesOf(Class, Replace, Capitalize) - for subclasses

s st = ##class(SMR.Main).RemoveFromMatchingClasses(Mask, Replace, Capitalize) - for LIKE SQL

Arguments:

  • Replace - what to replace $ with (% by default but, for example, you can specify $$$)
  • Capitalize - capitalize the letter after $ (boolean, yse by default)
  • Class - class which subclasses the utility would try to convert (including the class)
  • Mask - passed into the SQL query SELECT ID FROM %Dictionary.ClassDefinition Where ID LIKE ?

More docs are in the code docs. The utility works only in a current namespace.

Requirements

Works in 2016.2 Field Test or later.

Docker

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

Clone/git pull the repo into any local directory

$ git clone https://github.com/rcemper/PR_SystemMethodsRemover.git

to build and start the container run

$ docker compose up -d && docker compose logs -f

All ready to be used.

To open IRIS Terminal do:

$ docker-compose exec iris iris session iris 
USER>

or using WebTerminal
http://localhost:42773/terminal/

To access IRIS System Management Portal
http://localhost:42773/csp/sys/UtilHome.csp

About

Removes system ($) methods from the codebase. Tool for InterSystems Caché

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 68.3%
  • Dockerfile 31.7%