microcks / microcks/microcks-cli

fix: stop command missing --name flag to specify which instance to stop

Offen Anfängerfreundlich
#438 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Go
Sterne
52
Forks
68
Ø Merge
6 Std. 54 Min.
Gemergte PRs (30 T.)
10

Beschreibung

Why we need this:
The start command supports --name flag to name a Microcks instance
but the stop command has no --name flag. Users cannot specify which
instance to stop when multiple instances exist.

How this will help:
Adding --name flag to stop command makes it consistent with start
command and allows users to stop a specific named instance.

Problem

microcks start --name myinstance ✅ works
microcks stop --name myinstance ❌ flag does not exist

The stop command always resolves the current context instead of
allowing the user to specify which instance to stop by name.

Fix

  • Add --name flag to stop command
  • Pass name to ResolveContext() so correct instance is stopped
  • Remove unnecessary empty fmt.Println() call

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne am Einstiegspunkt des stop-Befehls und vergleiche dessen Flags und Kontextauflösung mit dem start-Befehl, wobei der Fokus auf ResolveContext() liegt. Überprüfe, dass die Befehlshilfe --name anzeigt, bestätige, dass der Name die Kontextauflösung erreicht, und prüfe, dass das Stoppen einer benannten Instanz ohne die unnötige leere Ausgabe funktioniert.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
go
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Ruhig
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
72/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.