cache Command for Local Source Management

Open
#1,028 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
cli

Research direction

Start by locating the existing history command pattern in the ZPM shell and the list -ss metadata handling. Inspect how module folders are stored under /ipm/; done means cache clean <module> removes its folder and metadata, while cache prune removes folders without an active installation in any namespace.

Written by the indexing model from the issue text.

Description

Currently, The module source code to a local directory (e.g., /usr/irissys/ipm/). While this acts as a local repository, there is no native way to manage these files within the ZPM shell. Users must manually delete folders.

The Proposal

Introduce a cache command modeled after the existing history command pattern. This command will allow users to clean and prune the physical files stored in the IPM installation directory.

Feature Breakdown
  1. cache clean [<module>]: Deletes the folder in /ipm/ and clears the internal metadata (list -ss entry).
  2. cache prune: Identifies folders on disk that do not match an active installation in any namespace and deletes them.
Dominant language
ObjectScript
Stars
41
Forks
33
Avg merge
23h 20m
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intersystems/ipm

All issues in intersystems/ipm

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.