mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
use default bash complete
This commit is contained in:
parent
8c116cf66a
commit
4fc40274db
1 changed files with 0 additions and 3 deletions
|
@ -88,9 +88,6 @@ func Run() (err error) {
|
||||||
app.EnableBashCompletion = true
|
app.EnableBashCompletion = true
|
||||||
app.HideHelp = false
|
app.HideHelp = false
|
||||||
app.HideVersion = false
|
app.HideVersion = false
|
||||||
app.BashComplete = func(c *cli.Context) {
|
|
||||||
fmt.Fprintf(c.App.Writer, "send\nreceive\relay")
|
|
||||||
}
|
|
||||||
app.Action = func(c *cli.Context) error {
|
app.Action = func(c *cli.Context) error {
|
||||||
// if trying to send but forgot send, let the user know
|
// if trying to send but forgot send, let the user know
|
||||||
if c.Args().First() != "" && utils.Exists(c.Args().First()) {
|
if c.Args().First() != "" && utils.Exists(c.Args().First()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue