Skip to content

Commit

Permalink
doc: update command/figlet.md #576
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 8, 2024
1 parent 4df5e92 commit f9babe1
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions command/figlet.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,41 +51,41 @@ message 是需要转换的字符串。

## 示例

- 从参数输入
### 从参数输入

```shell
figlet 'Hello, World!'
```

<pre style="line-height:1.2;">
```bash
_ _ _ _ __ __ _ _ _
| | | | ___| | | ___ \ \ / /__ _ __| | __| | |
| |_| |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | |
| _ | __/ | | (_) | \ V V / (_) | | | | (_| |_|
|_| |_|\___|_|_|\___( ) \_/\_/ \___/|_| |_|\__,_(_)
</pre>
```
- 配合管道符输入
### 配合管道符输入
```shell
echo 'Hello, World!' | figlet
```
<pre style="line-height:1.2;">
```bash
_ _ _ _ __ __ _ _ _
| | | | ___| | | ___ \ \ / /__ _ __| | __| | |
| |_| |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | |
| _ | __/ | | (_) | \ V V / (_) | | | | (_| |_|
|_| |_|\___|_|_|\___( ) \_/\_/ \___/|_| |_|\__,_(_)
</pre>
```
- 限制宽度
### 限制宽度
```shell
figlet 'Hello, World!' -w 40
```
<pre style="line-height:1.2;">
```bash
_ _ _ _
| | | | ___| | | ___
| |_| |/ _ \ | |/ _ \
Expand All @@ -97,15 +97,15 @@ __ __ _ _ _
\ \ /\ / / _ \| '__| |/ _` | |
\ V V / (_) | | | | (_| |_|
\_/\_/ \___/|_| |_|\__,_(_)
</pre>
```
- 居中显示
### 居中显示
```shell
figlet 'Hello, World!' -w 40 -c
```
<pre style="line-height:1.2;">
```bash
_ _ _ _
| | | | ___| | | ___
| |_| |/ _ \ | |/ _ \
Expand All @@ -117,15 +117,15 @@ figlet 'Hello, World!' -w 40 -c
\ \ /\ / / _ \| '__| |/ _` | |
\ V V / (_) | | | | (_| |_|
\_/\_/ \___/|_| |_|\__,_(_)
</pre>
```
- 指定字体
### 指定字体
```shell
figlet 'Hello, World!' -w 40 -c -f slant
```
<pre style="line-height:1.2;">
```bash
__ __ ____
/ / / /__ / / /___
/ /_/ / _ \/ / / __ \
Expand All @@ -137,15 +137,15 @@ figlet 'Hello, World!' -w 40 -c -f slant
| | /| / / __ \/ ___/ / __ / /
| |/ |/ / /_/ / / / / /_/ /_/
|__/|__/\____/_/ /_/\__,_(_)
</pre>
```
- 保留字符之间的空隙
### 保留字符之间的空隙
```shell
figlet 'Hello, World!' -w 40 -c -k
```
<pre style="line-height:1.2;">
```bash
_ _ _ _
| | | | ___ | || | ___
| |_| | / _ \| || | / _ \
Expand All @@ -157,4 +157,4 @@ figlet 'Hello, World!' -w 40 -c -k
\ \ /\ / // _ \ | '__|| | / _` || |
\ V V /| (_) || | | || (_| ||_|
\_/\_/ \___/ |_| |_| \__,_|(_)
</pre>
```

0 comments on commit f9babe1

Please sign in to comment.