Skip to content
Français

createHarnessGitTools

import { createHarnessGitTools } from "@elie-laloum/outpost/harness";

Create the git toolset: git runs a status, diff, log or show command and refuses —no-index, —output, —ext-diff, —textconv, —open-files-in-pager and their abbreviations. Absolute or drive-qualified path arguments and parent-directory traversal are refused. It is read-only and declares the command line git <command> <arguments> for permission rules.

Complete example and detailed rules.

HarnessToolset

export declare function createHarnessGitTools(): HarnessToolset;