Skip to content

P2. Hooks/Guards/Mounts to control :internal/cm-list list in execution call - #15

Merged
SerhiiRI merged 2 commits into
mainfrom
feat/hook-command-guard
Aug 9, 2026
Merged

SerhiiRI merged 2 commits into
mainfrom
feat/hook-command-guard

Conversation

@SerhiiRI

@SerhiiRI SerhiiRI commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Motivation

In production we have to had a way to check some commands before run. if we have {:commando/mutation :NOT_ALLOWED_MUTATION ...} the mutatoin we not want to be sent to commando/execute - we made a additional validations hooks

  1. :hook-command-guard-outer-fn - will check the only TopLevel instructions.
  2. :hook-command-guard-inner-fn - will check the only all internal callers (macros, etc)
  3. :hook-command-guard-all-fn - checking the inner and outer executions .

@SerhiiRI SerhiiRI self-assigned this Aug 3, 2026
@SerhiiRI SerhiiRI changed the title Hooks/Guards/Mounts to control :internal/cm-list list in execution call P2. Hooks/Guards/Mounts to control :internal/cm-list list in execution call Aug 3, 2026
Base automatically changed from feat/quoting to main August 9, 2026 09:22
… to check list of parsed command in instruction for inner/outer(or both) Instruction execution.
@SerhiiRI
SerhiiRI force-pushed the feat/hook-command-guard branch from 5cb3c01 to c1b70a2 Compare August 9, 2026 09:22
@SerhiiRI
SerhiiRI merged commit c74ef31 into main Aug 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant