Skip to content

Commit 6dababb

Browse files
committed
fix:[close #269]: no output during subsystem creation
1 parent f4a7fea commit 6dababb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cmd/subsyStems.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,14 @@ func newSubSystem(cmd *cobra.Command, args []string) error {
229229
return err
230230
}
231231

232-
cmdr.Info.Printfln(apx.Trans("subsystems.new.info.creatingSubsystem"), subSystemName, stackName)
232+
spinner, _ := cmdr.Spinner.Start(fmt.Sprintf(apx.Trans("subsystems.new.info.creatingSubsystem"), subSystemName, stackName))
233233
err = subSystem.Create()
234234
if err != nil {
235235
return err
236236
}
237237

238-
cmdr.Success.Printfln(apx.Trans("subsystems.new.info.success"), subSystemName)
238+
spinner.UpdateText(fmt.Sprintf(apx.Trans("subsystems.new.info.success"), subSystemName))
239+
spinner.Success()
239240

240241
return nil
241242
}

locales/en.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ subsystems:
299299
askName: "Choose a name:"
300300
selectStack: "Select a stack [1-%d]:"
301301
success: "Created subsystem '%s'."
302-
creatingSubsystem: "Created subsystem '%s' with stack '%s'…"
302+
creatingSubsystem: "Creating subsystem '%s' with stack '%s'…"
303303
options:
304304
name:
305305
description: "The name of the subsystem."

0 commit comments

Comments
 (0)