From f87d6e5ee725f0353748edcf5df6849ade2f3c7e Mon Sep 17 00:00:00 2001 From: rsteube Date: Tue, 11 Jun 2024 21:04:42 +0200 Subject: [PATCH] added examples --- docs/src/sandcastle.md | 47 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/docs/src/sandcastle.md b/docs/src/sandcastle.md index 45035a1..254055d 100644 --- a/docs/src/sandcastle.md +++ b/docs/src/sandcastle.md @@ -4,4 +4,49 @@ Not sure what to play with? Here are some ideas. -> TODO +```handlebars +gh repo clone {{REPO}} -- --branch {{BRANCH}} +``` + +```handlebars +gh issue list --repo {{REPOS}} --label {{LABEL}} +``` + +```handlebars +gh browse --repo {{REPO}} --branch {{BRANCH}} /{{FILES}} +``` + +```handlebars +gh api --method {{METHOD}} {{API_PATH}} +``` + +```handlebars +gh alias create NAME {{COMMAND}} +``` + +```handlebars +git show {{REF}} +git show REF~{{RELATIVE_REF}} +git show REF~RELATIVE_REF~{{RELATIVE_REF}} +git show REF~RELATIVE_REF~RELATIVE_REF:{{REF_FILES}} +``` + +```handlebars +git checkout {{REF}} {{UNEQUAL_FILES}} +``` + +```handlebars +git log {{REF}} +git -C {{FOLDER}} log {{REF}} +``` + +```handlebars +git add {{MODIFIED_FILES}} +``` + +```sh +gh issue view {{ISSUE}} +set-env GH_REPO {{REPO}} +gh issue view {{ISSUE}} +unset-env {{ENV}} +```