As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit defe4d4b authored by Archish Thakkar's avatar Archish Thakkar
Browse files

Apply 2 suggestion(s) to 1 file(s)

parent e244aa2f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -12,6 +12,8 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/v14/internal/gitlabnet/discover"
)
type logDataKey struct{}
// Command struct encapsulates the necessary components for executing the Discover command.
type Command struct {
Config *config.Config
Loading
Loading
@@ -35,7 +37,7 @@ func (c *Command) Execute(ctx context.Context) (context.Context, error) {
_, _ = fmt.Fprintf(c.ReadWriter.Out, "Welcome to GitLab, @%s!\n", response.Username)
}
ctxWithLogData := context.WithValue(ctx, "logData", logData)
ctxWithLogData := context.WithValue(ctx, logDataKey{}, logData)
return ctxWithLogData, nil
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment