From 727301de76db8c6d3884fbef5a392fc1db94718a Mon Sep 17 00:00:00 2001 From: Feynman Zhou Date: Mon, 27 Jun 2022 22:39:15 +0800 Subject: [PATCH] add syntax highlighting for code blocks Signed-off-by: Feynman Zhou --- docs/CLI/index.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/CLI/index.md b/docs/CLI/index.md index b60d6c28..14cb342b 100644 --- a/docs/CLI/index.md +++ b/docs/CLI/index.md @@ -6,7 +6,7 @@ This guide demonstrates the installation steps of ORAS CLI on different platform Install `oras` using [Homebrew](https://brew.sh/): -``` +```bash brew install oras ``` @@ -14,7 +14,7 @@ brew install oras Install `oras` using [GoFish](https://gofi.sh/): -``` +```bash gofish install oras ``` @@ -24,7 +24,7 @@ Install from the latest [release artifacts](https://github.com/oras-project/oras ### Linux -``` +```bash curl -LO https://github.com/oras-project/oras/releases/download/v0.12.0/oras_0.12.0_linux_amd64.tar.gz mkdir -p oras-install/ tar -zxf oras_0.12.0_*.tar.gz -C oras-install/ @@ -32,9 +32,9 @@ mv oras-install/oras /usr/local/bin/ rm -rf oras_0.12.0_*.tar.gz oras-install/ ``` -### MacOS +### macOS -``` +```bash curl -LO https://github.com/oras-project/oras/releases/download/v0.12.0/oras_0.12.0_darwin_amd64.tar.gz mkdir -p oras-install/ tar -zxf oras_0.12.0_*.tar.gz -C oras-install/ @@ -46,7 +46,7 @@ rm -rf oras_0.12.0_*.tar.gz oras-install/ Add `%USERPROFILE%\bin\` to your `PATH` environment variable so that `oras.exe` can be found. -``` +```shell curl.exe -sLO https://github.com/oras-project/oras/releases/download/v0.12.0/oras_0.12.0_windows_amd64.tar.gz tar.exe -xvzf oras_0.12.0_windows_amd64.tar.gz mkdir -p %USERPROFILE%\bin\ @@ -64,10 +64,10 @@ docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v0.12.0 help > Note: the default WORKDIR in the image is `/workspace`. -## Verify +## Verify -``` -oras version +```shell +$ oras version Version: 0.12.0 Go version: go1.16.3 Git commit: 1e6a64e1789f5145bf669b75bebfe013100f6253