1
1
Fork 0
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:
Zack Scholl 2020-09-13 12:11:18 -07:00
parent 8c116cf66a
commit 4fc40274db

View file

@ -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()) {