From 70e8014a2b4bd643c89bc2eb0f6ab262da00bfeb Mon Sep 17 00:00:00 2001 From: warman Date: Fri, 22 Mar 2024 13:48:32 -0400 Subject: [PATCH] chore: fmt README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2b36c54..d5ee85a 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ ⚠️ Currently alpha - use at your own risk. ⚠️ ## Example -`triggerr init` to initialize an empty `triggerr` script and add your logic and optionally configure any environment variables in a `.env` file. +`triggerr init` to initialize an empty `triggerr` script: -``` +```ts import { TriggerConfig, TriggerContext, TriggerFn } from './types.ts' // this configuration is converted into the Perforce trigger definitions @@ -42,7 +42,7 @@ export const main: TriggerFn = async (args: string[], ctx: TriggerContext) => { `triggerr add` to add the script to the Perforce configuration: -``` +```sh ┌───────┬─────────────────┬───────────────┬───────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Index │ Name │ Type │ Path │ Command │ ├───────┼─────────────────┼───────────────┼───────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤ @@ -61,11 +61,11 @@ See `/examples` for some additional example scripts. Make sure you have [Deno installed](https://docs.deno.com/runtime/manual/getting_started/installation). ### From GitHub -``` +```sh deno install --name triggerr --force --allow-net --allow-read --allow-env --allow-run --allow-write --allow-sys https://raw.githubusercontent.com/runreal/triggerr/main/src/index.ts ``` ### From Source -``` +```sh git clone https://github.com/runreal/triggerr deno install --name triggerr --force --allow-net --allow-read --allow-env --allow-run --allow-write --allow-sys src/index.ts ```