diff --git a/internal/cmd/stack/open_command.go b/internal/cmd/stack/open_command.go index 0221a8e..a1dee06 100644 --- a/internal/cmd/stack/open_command.go +++ b/internal/cmd/stack/open_command.go @@ -18,6 +18,13 @@ import ( ) func openCommandInBrowser(cliCtx *cli.Context) error { + if stackID := cliCtx.String(flagStackID.Name); stackID != "" { + return browser.OpenURL(authenticated.Client.URL( + "/stack/%s", + stackID, + )) + } + ignoreSubdir := cliCtx.Bool(flagIgnoreSubdir.Name) getCurrentBranch := cliCtx.Bool(flagCurrentBranch.Name) count := cliCtx.Int(flagSearchCount.Name) diff --git a/internal/cmd/stack/stack.go b/internal/cmd/stack/stack.go index 1babe1f..8e6290f 100644 --- a/internal/cmd/stack/stack.go +++ b/internal/cmd/stack/stack.go @@ -260,6 +260,7 @@ func Command() *cli.Command { Name: "open", Usage: "Open a stack in your browser", Flags: []cli.Flag{ + flagStackID, flagIgnoreSubdir, flagCurrentBranch, flagSearchCount,