Skip to content

Commit

Permalink
add colines link to coat for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Oct 23, 2017
1 parent bef1ef4 commit dc0e796
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions colines
4 changes: 2 additions & 2 deletions docs/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ $ show-busy-java-threads.sh
- `DateFormat.format`比较慢。(这个可以由`DateFormat.format`的实现确定。)
多执行几次`show-busy-java-threads.sh`,如果上面情况高概率出现,则可以确定上面的判定。
\# 因为调用越少代码执行越快,则出现在线程栈的概率就越低。
\# 脚本有自动多次执行的功能,指定 重复执行的间隔秒数/重复执行的次数 参数。
因为调用越少代码执行越快,则出现在线程栈的概率就越低。
脚本有自动多次执行的功能,指定 重复执行的间隔秒数/重复执行的次数 参数。
分析`shared.monitor.schedule.AppMonitorDataAvgScheduler.run`实现逻辑和调用方式,以优化实现解决问题。
Expand Down
14 changes: 8 additions & 6 deletions docs/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAz+ETZEgoLeIiC0rjWewdDs0sbo8c...== [email protected]

命令支持选项、功能和使用方式与[`cat`命令](https://linux.die.net/man/1/cat)完全一样(实际上读流操作在实现上全部代理给`cat`命令)。

命令名`coat`意思是`COlorful cAT`;当然单词`coat`的意思是外套,彩色输入行就像件漂亮的外套~ :satisfied:
命令名`coat`意思是`COlorful cAT`;当然单词`coat`的意思是外套,彩色输入行就像件漂亮的外套~ :satisfied:
注:之前命名是`colines`(意思是`COLorful LINES`)。

### 示例

Expand Down Expand Up @@ -168,7 +169,7 @@ test-cases/self-installer.sh
...
```

注:上面显示中,没有彩色在控制台上运行可以看出彩色效果。
注:上面示例中,没有彩色在控制台上运行可以看出彩色效果,和上面的`coat`命令一样

:beer: [ap](../ap) and [rp](../rp)
----------------------
Expand Down Expand Up @@ -240,9 +241,9 @@ SYN_SENT 17
支持`Linux``Mac``Windows``cygwin``MSSYS`)。

* `xpl`:在文件浏览器中打开指定的文件或文件夹。
\# `xpl``explorer`的缩写。
`xpl``explorer`的缩写。
* `xpf`: 在文件浏览器中打开指定的文件或文件夹,并选中。
\# `xpf``explorer and select file`的缩写。
`xpf``explorer and select file`的缩写。

### 用法

Expand Down Expand Up @@ -337,8 +338,9 @@ colorEchoWithoutNewLine "4;33;40" "Hello world!" "Hello Hell!"
----------------------

命令行选项解析库,加强支持选项有多个值(即数组)。
支持`Linux``Mac``Windows``cygwin``MSSYS`)。
\# 自己写一个命令行选项解析函数,是因为[`bash`](http://linux.die.net/man/1/bash)`buildin`命令[`getopts`](http://linux.die.net/man/1/getopts)和加强版本命令[`getopt`](http://linux.die.net/man/1/getopt)都不支持数组的值。
支持`Linux``Mac``Windows``cygwin``MSSYS`)。

自己写一个命令行选项解析函数,是因为[`bash`](http://linux.die.net/man/1/bash)`buildin`命令[`getopts`](http://linux.die.net/man/1/getopts)和加强版本命令[`getopt`](http://linux.die.net/man/1/getopt)都不支持数组的值。

指定选项的多个值(即数组)的风格模仿[`find`](http://linux.die.net/man/1/find)命令的`-exec`选项:

Expand Down

0 comments on commit dc0e796

Please sign in to comment.