hmgr 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/main.js
CHANGED
|
@@ -990,7 +990,8 @@ export async function ausfuehren(argv, umgebung, optionen = {}) {
|
|
|
990
990
|
// Säubern-Angebot nur, wenn eigene Konfiguration liegt, mit derselben Bedingung wie die GUI
|
|
991
991
|
// (E38, GRILL.md Entwurfskritik 4): eigene Links oder eine liegen gebliebene Registrierung
|
|
992
992
|
// ohne Link (E38 R7), sonst machten CLI und GUI verschiedene Angebote.
|
|
993
|
-
|
|
993
|
+
// Ohne Plugin-Abfrage (E94): gelesen werden nur Harness, Einträge und Registrierung.
|
|
994
|
+
const ziele = (await anwendungsfaelle.istZustand({ plugins: false })).filter((z) => z.ziel.harness === name &&
|
|
994
995
|
(z.eintraege.some((eintrag) => eintrag.art !== 'fremd') || z.istRegistriert));
|
|
995
996
|
if (ziele.length === 0)
|
|
996
997
|
return 0;
|
|
@@ -1998,10 +1998,11 @@ export class Anwendungsfaelle {
|
|
|
1998
1998
|
* Pfade, in die ein Link zeigt. Gelesen wird wie beim Ist-Zustand (E19): die Ziele der
|
|
1999
1999
|
* vorhandenen Harnesses, die Arbeitsverzeichnisse aus dem Zustand. Ein Link, dessen Quelle nicht
|
|
2000
2000
|
* im Zustand steht, zeigt trotzdem in einen Checkout und hält ihn.
|
|
2001
|
+
* Gelesen werden nur die Einträge, deshalb ohne Plugin-Abfrage (ein Prozess je Ziel, E94).
|
|
2001
2002
|
*/
|
|
2002
2003
|
async belegteCheckoutPfade() {
|
|
2003
2004
|
const pfade = new Set();
|
|
2004
|
-
for (const zielZustand of await this.istZustand())
|
|
2005
|
+
for (const zielZustand of await this.istZustand({ plugins: false }))
|
|
2005
2006
|
for (const eintrag of zielZustand.eintraege) {
|
|
2006
2007
|
if (eintrag.art === 'link')
|
|
2007
2008
|
pfade.add(path.resolve(eintrag.link.checkout.pfad));
|