UNPKG

@sap/cli-core

Version:

Command-Line Interface (CLI) Core Module

13 lines (12 loc) 517 B
import { get } from "../../../../config/index.js"; import { setAuthorization } from "../utils.js"; import { setAuthenticationMethod, setTargetHost } from "../../utils.js"; /* jscpd:ignore-start */ import { AuthenticationMethod } from "../../../../constants.js"; export const create = () => async () => async () => { const config = get(); /* jscpd:ignore-end */ setTargetHost(config.host); setAuthorization({ passcode: config.passcode }); setAuthenticationMethod(AuthenticationMethod.passcode); };