@@ -18,8 +18,6 @@ import (
1818 "context"
1919 "fmt"
2020
21- "github.com/slackapi/slack-cli/internal/config"
22- "github.com/slackapi/slack-cli/internal/experiment"
2321 "github.com/slackapi/slack-cli/internal/iostreams"
2422 authpkg "github.com/slackapi/slack-cli/internal/pkg/auth"
2523 "github.com/slackapi/slack-cli/internal/shared"
@@ -111,7 +109,7 @@ func RunLoginCommand(clients *shared.ClientFactory, cmd *cobra.Command) (types.S
111109 return types.SlackAuth {}, err
112110 }
113111 if selectedAuth .Token != "" {
114- printAuthSuccess (cmd , clients .Config , clients . IO , credentialsPath , selectedAuth .Token )
112+ printAuthSuccess (cmd , clients .IO , credentialsPath , selectedAuth .Token )
115113 printAuthNextSteps (ctx , clients )
116114 }
117115 return selectedAuth , err
@@ -121,14 +119,14 @@ func RunLoginCommand(clients *shared.ClientFactory, cmd *cobra.Command) (types.S
121119 if err != nil {
122120 return types.SlackAuth {}, err
123121 } else {
124- printAuthSuccess (cmd , clients .Config , clients . IO , credentialsPath , selectedAuth .Token )
122+ printAuthSuccess (cmd , clients .IO , credentialsPath , selectedAuth .Token )
125123 printAuthNextSteps (ctx , clients )
126124 }
127125
128126 return selectedAuth , nil
129127}
130128
131- func printAuthSuccess (cmd * cobra.Command , config * config. Config , IO iostreams.IOStreamer , credentialsPath string , token string ) {
129+ func printAuthSuccess (cmd * cobra.Command , IO iostreams.IOStreamer , credentialsPath string , token string ) {
132130 ctx := cmd .Context ()
133131
134132 var secondaryLog string
@@ -138,13 +136,7 @@ func printAuthSuccess(cmd *cobra.Command, config *config.Config, IO iostreams.IO
138136 secondaryLog = fmt .Sprintf ("Service token:\n \n %s\n \n Make sure to copy the token now and save it safely." , token )
139137 }
140138
141- // The legacy prompt leaves no blank line before the success message, so
142- // print one here. The Charm-based prompt already handles spacing.
143- if ! config .WithExperimentOn (experiment .Charm ) {
144- IO .PrintInfo (ctx , false , "" )
145- }
146-
147- IO .PrintInfo (ctx , false , "%s" , style .Sectionf (style.TextSection {
139+ IO .PrintInfo (ctx , false , "\n %s" , style .Sectionf (style.TextSection {
148140 Emoji : "key" ,
149141 Text : "You've successfully authenticated!" ,
150142 Secondary : []string {secondaryLog },
0 commit comments