rancher / opni

Multi Cluster Observability with AIOps

Home Page:https://opni.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] panic / exit on bad pattern

joshmeranda opened this issue · comments

[jmeranda /home/jmeranda/workspaces/rancher/opni] git > push -u origin import-http[
panic: syntax error in pattern

goroutine 1 [running]:
github.com/joshmeranda/wrash/pkg/args.(*Word).Expand(0xc0003c8348, 0x1)
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/args/types.go:55 +0x20b
github.com/joshmeranda/wrash/pkg/args.Arg.Expand.func1({0x6602c0?, 0xc0003c8348?}, 0x44bbd2?)
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/args/types.go:101 +0x2e
github.com/samber/lo.Map[...]({0xc0001bc8e0?, 0x1, 0xc0001bc940}, 0xc0001a57e8?)
        /home/jmeranda/go/pkg/mod/github.com/samber/lo@v1.38.1/slice.go:29 +0x7a
github.com/joshmeranda/wrash/pkg/args.Arg.Expand({0xc0001bc8e0?, 0x60?, 0x5d6a80?}, 0xc0003f1801?)
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/args/types.go:100 +0x5f
github.com/joshmeranda/wrash/pkg/args.Command.Expand.func1({0xc0001bc8e0?, 0x461cfb?, 0xc0000061a0?}, 0x200000003?)
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/args/types.go:109 +0x25
github.com/samber/lo.Map[...]({0xc00007afc0?, 0x4, 0x5da940}, 0xc0001a58f0?)
        /home/jmeranda/go/pkg/mod/github.com/samber/lo@v1.38.1/slice.go:29 +0x85
github.com/joshmeranda/wrash/pkg/args.Command.Expand({0xc00007afc0?, 0x1b?, 0x56efb4?}, 0x10?)
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/args/types.go:108 +0x5f
github.com/joshmeranda/wrash/pkg.(*Session).executor(0xc00002a880, {0xc0001b6220, 0x1b})
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/session.go:204 +0x1a5
github.com/joshmeranda/go-prompt.(*Prompt).Run(0xc0001bb680)
        /home/jmeranda/go/pkg/mod/github.com/joshmeranda/go-prompt@v0.3.0/prompt.go:84 +0x755
github.com/joshmeranda/wrash/pkg.(*Session).Run(0x7ffe9331c775?)
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/session.go:257 +0x54
main.run(0xc000149e18?)
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/cmd/wrash/main.go:55 +0xfa
github.com/urfave/cli/v2.(*Command).Run(0xc000196160, 0xc0001104c0, {0xc000014040, 0x2, 0x2})
        /home/jmeranda/go/pkg/mod/github.com/urfave/cli/v2@v2.25.4/command.go:274 +0x9eb
github.com/urfave/cli/v2.(*App).RunContext(0xc000194000, {0x661058?, 0xc00001e100}, {0xc000014040, 0x2, 0x2})
        /home/jmeranda/go/pkg/mod/github.com/urfave/cli/v2@v2.25.4/app.go:332 +0x616
github.com/urfave/cli/v2.(*App).Run(...)
        /home/jmeranda/go/pkg/mod/github.com/urfave/cli/v2@v2.25.4/app.go:309
main.main()
        /home/jmeranda/workspaces/joshmeranda/wrash/pkg/cmd/wrash/main.go:75 +0x16d