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
Typing "ultralist e" with no further arguments throws an error with the following output:
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]: github.com/ultralist/ultralist/cmd.init.7.func1(0x140001bedc0, {0x10353dd50, 0x0, 0x0}) github.com/ultralist/ultralist/cmd/edit.go:44 +0x224 github.com/spf13/cobra.(*Command).execute(0x140001bedc0, {0x10353dd50, 0x0, 0x0}) github.com/spf13/[email protected]/command.go:846 +0x640 github.com/spf13/cobra.(*Command).ExecuteC(0x103504d80) github.com/spf13/[email protected]/command.go:950 +0x404 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/[email protected]/command.go:887 github.com/ultralist/ultralist/cmd.Execute() github.com/ultralist/ultralist/cmd/root.go:23 +0x30 main.main() github.com/ultralist/ultralist/main.go:8 +0x20
The text was updated successfully, but these errors were encountered:
Guard against no arguments to edit command
1565290
Closes gammons#268
Successfully merging a pull request may close this issue.
Typing "ultralist e" with no further arguments throws an error with the following output:
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/ultralist/ultralist/cmd.init.7.func1(0x140001bedc0, {0x10353dd50, 0x0, 0x0})
github.com/ultralist/ultralist/cmd/edit.go:44 +0x224
github.com/spf13/cobra.(*Command).execute(0x140001bedc0, {0x10353dd50, 0x0, 0x0})
github.com/spf13/[email protected]/command.go:846 +0x640
github.com/spf13/cobra.(*Command).ExecuteC(0x103504d80)
github.com/spf13/[email protected]/command.go:950 +0x404
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:887
github.com/ultralist/ultralist/cmd.Execute()
github.com/ultralist/ultralist/cmd/root.go:23 +0x30
main.main()
github.com/ultralist/ultralist/main.go:8 +0x20
The text was updated successfully, but these errors were encountered: