Skip to content

Commit

Permalink
[+] Update Help info
Browse files Browse the repository at this point in the history
  • Loading branch information
WangYihang committed Aug 15, 2018
1 parent 5ab6b9e commit e7dcb38
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions lib/cli/dispatcher/data_dispatcher.go
Expand Up @@ -40,10 +40,9 @@ func (ctx Dispatcher) DataDispatcher(args []string) {
func (ctx Dispatcher) DataDispatcherHelp(args []string) {
fmt.Println("Usage of DataDispatcher")
fmt.Println("\tDataDispatcher")
fmt.Println("\tCMD\tCommand to DataDispatcher on the clients which are interactive")
}

func (ctx Dispatcher) DataDispatcherDesc(args []string) {
fmt.Println("DataDispatcher")
fmt.Println("\tThis command will DataDispatcher command on all clients which are interactive")
fmt.Println("\tDataDispatcher command on all clients which are interactive")
}
2 changes: 1 addition & 1 deletion lib/cli/dispatcher/exit.go
Expand Up @@ -26,6 +26,6 @@ func (ctx Dispatcher) ExitHelp(args []string) {

func (ctx Dispatcher) ExitDesc(args []string) {
fmt.Println("Exit")
fmt.Println("\tThis command will try to exit the whole process")
fmt.Println("\tExit the whole process")
fmt.Println("\tIf there is any listening server, it will ask you to stop them or not")
}
2 changes: 1 addition & 1 deletion lib/cli/dispatcher/info.go
Expand Up @@ -37,5 +37,5 @@ func (ctx Dispatcher) InfoHelp(args []string) {

func (ctx Dispatcher) InfoDesc(args []string) {
fmt.Println("Info")
fmt.Println("\tThis command will display the infomation of a node, using the hash of the node")
fmt.Println("\tDisplay the infomation of a node, using the hash of the node")
}
2 changes: 1 addition & 1 deletion lib/cli/dispatcher/interact.go
Expand Up @@ -78,5 +78,5 @@ func (ctx Dispatcher) InteractHelp(args []string) {

func (ctx Dispatcher) InteractDesc(args []string) {
fmt.Println("Interact")
fmt.Println("\tThis command will pop up a interactive session, you can communicate with it via stdin/stdout")
fmt.Println("\tPop up a interactive session, you can communicate with it via stdin/stdout")
}
2 changes: 1 addition & 1 deletion lib/cli/dispatcher/jump.go
Expand Up @@ -34,5 +34,5 @@ func (ctx Dispatcher) JumpHelp(args []string) {

func (ctx Dispatcher) JumpDesc(args []string) {
fmt.Println("Jump")
fmt.Println("\tThis command will jump to a node, waiting to interactive with it")
fmt.Println("\tJump to a node, waiting to interactive with it")
}
2 changes: 1 addition & 1 deletion lib/cli/dispatcher/list.go
Expand Up @@ -21,5 +21,5 @@ func (ctx Dispatcher) ListHelp(args []string) {

func (ctx Dispatcher) ListDesc(args []string) {
fmt.Println("List")
fmt.Println("\tThis command will try list all listening servers and connected clients")
fmt.Println("\tTry list all listening servers and connected clients")
}
2 changes: 1 addition & 1 deletion lib/cli/dispatcher/run.go
Expand Up @@ -40,5 +40,5 @@ func (ctx Dispatcher) RunHelp(args []string) {

func (ctx Dispatcher) RunDesc(args []string) {
fmt.Println("Run")
fmt.Println("\tThis command will try to run a server, listening on a port, waiting for client to connect")
fmt.Println("\tTry to run a server, listening on a port, waiting for client to connect")
}
2 changes: 1 addition & 1 deletion lib/cli/dispatcher/switching.go
Expand Up @@ -34,6 +34,6 @@ func (ctx Dispatcher) SwitchingHelp(args []string) {

func (ctx Dispatcher) SwitchingDesc(args []string) {
fmt.Println("Switching")
fmt.Println("\tThis command will switch the interactive field of a node, allows you to interactive with it")
fmt.Println("\tSwitch the interactive field of a node, allows you to interactive with it")
fmt.Println("\tIf the current status is ON, it will turns to OFF. If OFF, turns ON")
}

0 comments on commit e7dcb38

Please sign in to comment.