Skip to content
New issue

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

Fix no-op #85

Merged
merged 1 commit into from
Feb 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## master - unreleased

BUG FIXES:

* Don't show error on empty line enter in interactive mode ([#85](https://github.com/fishi0x01/vsh/pull/85))

## v0.9.0 (February 6, 2021)

Big thank you to [mattlqx](https://github.com/mattlqx) for the great enhancements.
Expand Down
13 changes: 7 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ func executor(in string) {
args, err := argv.Argv(in, func(backquoted string) (string, error) {
return backquoted, nil
}, nil)
if err != nil {
log.UserError("%v", err)
return
}
commands := cli.NewCommands(vaultClient)
var cmd cli.Command

// edge cases
if len(args) == 0 {
Expand All @@ -64,6 +58,13 @@ func executor(in string) {
return
}

if err != nil {
log.UserError("%v", err)
return
}
commands := cli.NewCommands(vaultClient)
var cmd cli.Command

// parse command
switch args[0][0] {
case "toggle-auto-completion":
Expand Down