UNPKG
@sap/cli-core
Version:
latest (2025.24.0)
2025.24.0
2025.23.0
2025.20.0
2025.19.0
2025.17.0
2025.16.0
2025.15.0
2025.14.0
2025.12.0
2025.11.0
2025.10.0
2025.9.0
2025.8.0
2025.7.0
2025.6.0
2025.5.0
2025.4.0
2025.3.0
2025.2.0
2025.1.0
2024.25.0
2024.24.0
2024.23.0
2024.22.0
2024.21.0
2024.20.0
2024.19.0
2024.18.0
2024.16.0
2024.15.0
2024.14.0
2024.13.0
2024.12.0
2024.9.0
2024.8.0
2024.7.0
2024.6.0
2024.5.0
2024.4.0
2024.3.0
2024.2.0
2024.1.0
2023.25.0
2023.24.0
2023.23.0
2023.22.0
2023.19.0
2023.18.0
2023.17.0
2023.14.0
2023.13.0
2023.12.0
Command-Line Interface (CLI) Core Module
www.sap.com
@sap/cli-core
/
commands
/
handler
/
fail.js
7 lines
(6 loc)
•
225 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
{ get }
from
"../../logger/index.js"
;
export
const
create
= (
) =>
async
() =>
async
() => {
const
{ debug } =
get
(
"commands.handler.fail"
);
debug
(
`running fail handler`
);
throw
new
Error
(
"Fail I must"
); };