From f9babe1e8092e8be0ca0b1a4d09d854aad02982d Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 8 May 2024 07:59:14 +0800 Subject: [PATCH] doc: update command/figlet.md #576 --- command/figlet.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/command/figlet.md b/command/figlet.md index 1b1dbcb942..910c06fde5 100644 --- a/command/figlet.md +++ b/command/figlet.md @@ -51,41 +51,41 @@ message 是需要转换的字符串。 ## 示例 -- 从参数输入 +### 从参数输入 ```shell figlet 'Hello, World!' ``` -
+```bash
  _   _      _ _         __        __         _     _ _
 | | | | ___| | | ___    \ \      / /__  _ __| | __| | |
 | |_| |/ _ \ | |/ _ \    \ \ /\ / / _ \| '__| |/ _` | |
 |  _  |  __/ | | (_) |    \ V  V / (_) | |  | | (_| |_|
 |_| |_|\___|_|_|\___( )    \_/\_/ \___/|_|  |_|\__,_(_)
-
+``` -- 配合管道符输入 +### 配合管道符输入 ```shell echo 'Hello, World!' | figlet ``` -
+```bash
  _   _      _ _         __        __         _     _ _
 | | | | ___| | | ___    \ \      / /__  _ __| | __| | |
 | |_| |/ _ \ | |/ _ \    \ \ /\ / / _ \| '__| |/ _` | |
 |  _  |  __/ | | (_) |    \ V  V / (_) | |  | | (_| |_|
 |_| |_|\___|_|_|\___( )    \_/\_/ \___/|_|  |_|\__,_(_)
-
+``` -- 限制宽度 +### 限制宽度 ```shell figlet 'Hello, World!' -w 40 ``` -
+```bash
  _   _      _ _
 | | | | ___| | | ___
 | |_| |/ _ \ | |/ _ \
@@ -97,15 +97,15 @@ __        __         _     _ _
  \ \ /\ / / _ \| '__| |/ _` | |
   \ V  V / (_) | |  | | (_| |_|
    \_/\_/ \___/|_|  |_|\__,_(_)
-
+``` -- 居中显示 +### 居中显示 ```shell figlet 'Hello, World!' -w 40 -c ``` -
+```bash
          _   _      _ _
         | | | | ___| | | ___
         | |_| |/ _ \ | |/ _ \
@@ -117,15 +117,15 @@ figlet 'Hello, World!' -w 40 -c
      \ \ /\ / / _ \| '__| |/ _` | |
       \ V  V / (_) | |  | | (_| |_|
        \_/\_/ \___/|_|  |_|\__,_(_)
-
+``` -- 指定字体 +### 指定字体 ```shell figlet 'Hello, World!' -w 40 -c -f slant ``` -
+```bash
             __  __     ____
            / / / /__  / / /___
           / /_/ / _ \/ / / __ \
@@ -137,15 +137,15 @@ figlet 'Hello, World!' -w 40 -c -f slant
     | | /| / / __ \/ ___/ / __  / /
     | |/ |/ / /_/ / /  / / /_/ /_/
     |__/|__/\____/_/  /_/\__,_(_)
-
+``` -- 保留字符之间的空隙 +### 保留字符之间的空隙 ```shell figlet 'Hello, World!' -w 40 -c -k ``` -
+```bash
        _   _        _  _
       | | | |  ___ | || |  ___
       | |_| | / _ \| || | / _ \
@@ -157,4 +157,4 @@ figlet 'Hello, World!' -w 40 -c -k
    \ \ /\ / // _ \ | '__|| | / _` || |
     \ V  V /| (_) || |   | || (_| ||_|
      \_/\_/  \___/ |_|   |_| \__,_|(_)
-
+```