@newlandnpt/pep-cli 0.9.0-rc.2 → 0.9.0-rc.3
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/pep.cjs +17 -14
- package/package.json +1 -1
package/dist/pep.cjs
CHANGED
|
@@ -1834,6 +1834,13 @@ async function installGroup(dependencies, remote) {
|
|
|
1834
1834
|
if (repos.length === 0) {
|
|
1835
1835
|
dependencies.onProgress(` ${group} lists no repositories \u2014 nothing to install.`);
|
|
1836
1836
|
}
|
|
1837
|
+
const drifted = driftedFromGroup(dependencies.installedSources, repos, group);
|
|
1838
|
+
if (drifted.length > 0) {
|
|
1839
|
+
dependencies.onProgress(` \u26A0 On your list but no longer in ${group}:`);
|
|
1840
|
+
for (const source of drifted) dependencies.onProgress(` ${source}`);
|
|
1841
|
+
dependencies.onProgress(" Nothing was deleted. If one of them blocks an install below,");
|
|
1842
|
+
dependencies.onProgress(" `pep skills remove <repo>` drops it for good.");
|
|
1843
|
+
}
|
|
1837
1844
|
const installed = [];
|
|
1838
1845
|
const failed = [];
|
|
1839
1846
|
for (const [index, source] of repos.entries()) {
|
|
@@ -1846,13 +1853,7 @@ async function installGroup(dependencies, remote) {
|
|
|
1846
1853
|
dependencies.onProgress(` \u2717 ${source}: ${message}`);
|
|
1847
1854
|
}
|
|
1848
1855
|
}
|
|
1849
|
-
return {
|
|
1850
|
-
status: "installed",
|
|
1851
|
-
group,
|
|
1852
|
-
installed,
|
|
1853
|
-
failed,
|
|
1854
|
-
drifted: driftedFromGroup(dependencies.installedSources, repos, group)
|
|
1855
|
-
};
|
|
1856
|
+
return { status: "installed", group, installed, failed, drifted };
|
|
1856
1857
|
}
|
|
1857
1858
|
async function runSetup(dependencies) {
|
|
1858
1859
|
dependencies.onProgress("\u2460 Signing in to PEP\u2026");
|
|
@@ -1924,7 +1925,7 @@ function setupFailureSummary(report) {
|
|
|
1924
1925
|
}
|
|
1925
1926
|
|
|
1926
1927
|
// src/cli.ts
|
|
1927
|
-
var VERSION = false ? "0.0.0-dev" : "0.9.0-rc.
|
|
1928
|
+
var VERSION = false ? "0.0.0-dev" : "0.9.0-rc.3";
|
|
1928
1929
|
var SKILLS_ADD_DEPRECATION = "\u26A0 `pep skills add` will be removed in a future release.";
|
|
1929
1930
|
function reportUpdate(result) {
|
|
1930
1931
|
const conflicts = () => {
|
|
@@ -2108,12 +2109,14 @@ function reportSetup(report) {
|
|
|
2108
2109
|
console.error(` \u2717 ${source}: ${message}`);
|
|
2109
2110
|
}
|
|
2110
2111
|
if (skills.drifted.length > 0) {
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
console.error(" `pep skills
|
|
2112
|
+
const n = skills.drifted.length;
|
|
2113
|
+
console.error(
|
|
2114
|
+
`
|
|
2115
|
+
\u26A0 ${n} ${n === 1 ? "repository" : "repositories"} on your list ${n === 1 ? "is" : "are"} no longer in ${skills.group} (listed above).`
|
|
2116
|
+
);
|
|
2117
|
+
console.error(" Nothing was deleted. `pep skills update` will report 404 for each of them");
|
|
2118
|
+
console.error(" (which reads exactly like a typo, but is not). `pep skills remove <repo>`");
|
|
2119
|
+
console.error(" drops one for good.");
|
|
2117
2120
|
}
|
|
2118
2121
|
}
|
|
2119
2122
|
if (report.nexus.status === "skipped") {
|