update doc

pull/1097/head
hengyunabc 5 years ago
parent 79ba5271f9
commit ed38c6a578

@ -1,5 +1,6 @@
package com.taobao.arthas.core.command.basic1000;
import com.taobao.arthas.core.command.Constants;
import com.taobao.arthas.core.shell.command.AnnotatedCommand;
import com.taobao.arthas.core.shell.command.CommandProcess;
import com.taobao.middleware.cli.annotations.Argument;
@ -14,6 +15,9 @@ import com.taobao.middleware.cli.annotations.Summary;
*/
@Name("echo")
@Summary("write arguments to the standard output")
@Description("\nExamples:\n" +
" echo 'abc'\n" +
Constants.WIKI + Constants.WIKI_HOME + "echo")
public class EchoCommand extends AnnotatedCommand {
private String message;

@ -32,7 +32,10 @@ import sun.management.counter.perf.PerfInstrumentation;
*/
@Name("perfcounter")
@Summary("Display the perf counter infornation.")
@Description(Constants.WIKI + Constants.WIKI_HOME + "perf")
@Description("\nExamples:\n" +
" perfcounter\n" +
" perfcounter -d\n" +
Constants.WIKI + Constants.WIKI_HOME + "perfcounter")
public class PerfCounterCommand extends AnnotatedCommand {
private static final Logger logger = LoggerFactory.getLogger(PerfCounterCommand.class);
private static Object perfObject;

@ -6,6 +6,7 @@
* help——查看命令帮助信息
* [cat](cat.md)——打印文件内容和linux里的cat命令类似
* [echo](echo.md)--打印参数和linux里的echo命令类似
* [grep](grep.md)——匹配查找和linux里的grep命令类似
* [tee](tee.md)——复制标准输入到标准输出和指定的文件和linux里的tee命令类似
* [pwd](pwd.md)——返回当前的工作目录和linux命令类似

@ -33,6 +33,7 @@
* [profiler](profiler.md)
* [cat](cat.md)
* [echo](echo.md)
* [grep](grep.md)
* [tee](tee.md)
* [pwd](pwd.md)

@ -0,0 +1,9 @@
echo
===
> 打印参数和linux里的echo命令类似。
```bash
$ echo 'hello'
```

@ -6,6 +6,7 @@ Advanced Usage
* help - display Arthas help
* cls - clear the screen
* [cat](cat.md) - Concatenate and print files
* [echo](echo.md) - write arguments to the standard output
* [grep](grep.md) - Pattern searcher
* [tee](tee.md) - Copies standard input to standard output, making a copy in zero or more files.
* [pwd](pwd.md) - Return working directory name

@ -33,6 +33,7 @@ All Commands
* [profiler](profiler.md)
* [cat](cat.md)
* [echo](echo.md)
* [grep](grep.md)
* [tee](tee.md)
* [pwd](pwd.md)

@ -0,0 +1,9 @@
echo
===
> write arguments to the standard output.
```bash
$ echo 'hello'
```
Loading…
Cancel
Save