Skip to content

Commit

Permalink
Add a line break to kubectl-moco start/stop command's message
Browse files Browse the repository at this point in the history
Signed-off-by: Masayuki Ishii <[email protected]>
  • Loading branch information
masa213f committed Sep 6, 2024
1 parent 3bb8fdb commit 304dd2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/kubectl-moco/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func startClustering(ctx context.Context, name string) error {
}

if equality.Semantic.DeepEqual(orig, cluster) {
fmt.Fprintf(os.Stdout, "The clustering is already running.")
fmt.Fprintf(os.Stdout, "The clustering is already running.\n")
return nil
}

Expand Down Expand Up @@ -89,7 +89,7 @@ func startReconciliation(ctx context.Context, name string) error {
}

if equality.Semantic.DeepEqual(orig, cluster) {
fmt.Fprintf(os.Stdout, "The reconciliation is already running.")
fmt.Fprintf(os.Stdout, "The reconciliation is already running.\n")
return nil
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/kubectl-moco/cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func stopClustering(ctx context.Context, name string) error {
cluster.Annotations[constants.AnnClusteringStopped] = "true"

if equality.Semantic.DeepEqual(orig, cluster) {
fmt.Fprintf(os.Stdout, "The clustering is already stopped.")
fmt.Fprintf(os.Stdout, "The clustering is already stopped.\n")
return nil
}

Expand Down Expand Up @@ -91,7 +91,7 @@ func stopReconciliation(ctx context.Context, name string) error {
cluster.Annotations[constants.AnnReconciliationStopped] = "true"

if equality.Semantic.DeepEqual(orig, cluster) {
fmt.Fprintf(os.Stdout, "The reconciliation is already stopped.")
fmt.Fprintf(os.Stdout, "The reconciliation is already stopped.\n")
return nil
}

Expand Down

0 comments on commit 304dd2e

Please sign in to comment.