Aller au contenu
English

HookCommand

import type { HookCommand } from "@elie-laloum/outpost/core";
  • executableRequis
    string
    Programme à exécuter dans le sandbox, sans expansion shell implicite.
  • argumentsOptionnel
    readonly string[] | undefined
    Arguments littéraux du programme.
  • directoryOptionnel
    string | undefined
    Répertoire de travail dans le sandbox ; celui du contexte appelant par défaut.
  • variablesOptionnel
    Readonly<Record<string, string>> | undefined
    Variables d’environnement explicites de la commande du hook.
export interface HookCommand {
  readonly executable: string;
  readonly arguments?: readonly string[];
  readonly directory?: string;
  readonly variables?: Variables;
}