We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using this example raises the error Error: incorrect input, try 'help':
Error: incorrect input, try 'help'
shell.AddCmd(&ishell.Cmd{ Name: "test cmd example", Help: "test cmd", LongHelp: "Turn syslog OFF.", Func: func(c *ishell.Context) { c.Println("test") }, })
tried like this:
{ ishell_cmd := &ishell.Cmd{ Name: "test", Help: "test func", } ishell_cmd.AddCmd(&ishell.Cmd{ Name: "cmd example", Help: "cmd example help text", LongHelp: "Turn syslog OFF.", Func: func(c *ishell.Context) { c.Println("test") }, }) shell.AddCmd(ishell_cmd) }
makes it print the help:
>>> test cmd example test func Commands: cmd example cmd example help text
The text was updated successfully, but these errors were encountered:
No branches or pull requests
using this example raises the error
Error: incorrect input, try 'help'
:tried like this:
makes it print the help:
The text was updated successfully, but these errors were encountered: