Skip to content

Commit 2e905db

Browse files
committed
chore: #211 Enhance display of start and stop commands
Signed-off-by: Laurent Broudoux <laurent.broudoux@gmail.com>
1 parent 1f20e99 commit 2e905db

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cmd/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ microcks start --name [name of you container/instance]`,
140140
err = config.WriteLocalConfig(*localConfig, configFile)
141141
errors.CheckError(err)
142142

143-
fmt.Printf("Microcks started successfully...")
143+
fmt.Printf("Microcks started successfully at %s\n", server)
144144
},
145145
}
146146
startCmd.Flags().StringVar(&name, "name", "microcks", "name for you microcks instance")

cmd/stop.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func NewStopCommand(globalClientOpts *connectors.ClientOptions) *cobra.Command {
4545
log.Fatalf("Failed to stop a container: %v", err)
4646
return
4747
}
48+
fmt.Println("")
4849
log.Printf("Instance %s stopped successfully", instance.Name)
4950

5051
// update configs
@@ -65,7 +66,7 @@ func NewStopCommand(globalClientOpts *connectors.ClientOptions) *cobra.Command {
6566
} else {
6667
instance.Status = "Exited"
6768
localConfig.UpsertInstance(instance)
68-
log.Printf("Instance %s status update to Exited", instance.Name)
69+
log.Printf("Instance %s status updated to Exited", instance.Name)
6970
}
7071
err = config.WriteLocalConfig(*localConfig, configFile)
7172
errors.CheckError(err)

0 commit comments

Comments
 (0)