@aikidosec/safe-chain 1.3.0 → 1.3.1
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/package.json +1 -1
- package/src/config/cliArguments.js +17 -1
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ui } from "../environment/userInteraction.js";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @type {{loggingLevel: string | undefined, skipMinimumPackageAge: boolean | undefined, minimumPackageAgeHours: string | undefined}}
|
|
3
5
|
*/
|
|
@@ -33,7 +35,7 @@ export function initializeCliArguments(args) {
|
|
|
33
35
|
setLoggingLevel(safeChainArgs);
|
|
34
36
|
setSkipMinimumPackageAge(safeChainArgs);
|
|
35
37
|
setMinimumPackageAgeHours(safeChainArgs);
|
|
36
|
-
|
|
38
|
+
checkDeprecatedPythonFlag(args);
|
|
37
39
|
return remainingArgs;
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -120,3 +122,17 @@ function hasFlagArg(args, flagName) {
|
|
|
120
122
|
}
|
|
121
123
|
return false;
|
|
122
124
|
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Emits a deprecation warning for legacy --include-python flag
|
|
128
|
+
*
|
|
129
|
+
* @param {string[]} args
|
|
130
|
+
* @returns {void}
|
|
131
|
+
*/
|
|
132
|
+
export function checkDeprecatedPythonFlag(args) {
|
|
133
|
+
if (hasFlagArg(args, "--include-python")) {
|
|
134
|
+
ui.writeWarning(
|
|
135
|
+
"--include-python is deprecated and ignored. Python tooling is included by default."
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
}
|