Skip to content

Commit

Permalink
add shell complete entry
Browse files Browse the repository at this point in the history
  • Loading branch information
hellflame committed May 15, 2021
1 parent 3a67beb commit 57eb91f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion args.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func parseArgs(input []string) (args *RawArgs, e error) {
return nil
}
parser := argparse.NewParser(NAME, "easily send mail from command line",
&argparse.ParserConfig{EpiLog: "more info @ https://github.com/hellflame/easy-mail"})
&argparse.ParserConfig{EpiLog: "more info @ https://github.com/hellflame/easy-mail", AddShellCompletion: true})
from := parser.String("f", "from", &argparse.Option{Help: "email send from", Validate: emailValidator})
to := parser.Strings("t", "to", &argparse.Option{Help: "recv address list", Validate: emailValidator})
subject := parser.String("s", "subject", &argparse.Option{Help: "email subject"})
Expand Down
2 changes: 1 addition & 1 deletion entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

const NAME = "easy-mail"
const VERSION = "v0.5.0"
const VERSION = "v0.5.1"

func Run(args *TidyArgs) error {
if args.GenerateAuth {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/hellflame/easy-mail

go 1.16

require github.com/hellflame/argparse v1.0.0
require github.com/hellflame/argparse v1.0.1
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/hellflame/argparse v1.0.0 h1:d2uOsj0JpHFjK1TnxgpOh+m1yj9lS0FgbRiNPzpaStA=
github.com/hellflame/argparse v1.0.0/go.mod h1:nOtOQAtkWh6u5msq6huJxZtjb+Yg9VeN0e7vRuBS49E=
github.com/hellflame/argparse v1.0.1 h1:IUjUUziSf+G5Mpji74zb7iYBqlTZeArslbZajnVKRD8=
github.com/hellflame/argparse v1.0.1/go.mod h1:nOtOQAtkWh6u5msq6huJxZtjb+Yg9VeN0e7vRuBS49E=

0 comments on commit 57eb91f

Please sign in to comment.