Skip to content

Commit

Permalink
disable silent
Browse files Browse the repository at this point in the history
  • Loading branch information
vchrisb committed Dec 5, 2024
1 parent 95c9880 commit 159e9c3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ uaa curl /oauth/clients -X POST -H "Content-Type: application/json" -d '{"client

```
npm i -g @vercel/ncc
npm run lint
npm run format
npm run build
```
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28327,7 +28327,7 @@ function install_cf(version) {
function setup_cf(api) {
return __awaiter(this, void 0, void 0, function* () {
try {
yield exec.exec("cf", ["api", api], { silent: true });
yield exec.exec("cf", ["api", api], { silent: false });
core.info(">>> Successfully set CF API endpoint");
}
catch (error) {
Expand Down Expand Up @@ -28438,7 +28438,7 @@ function handleClientCredentials(client_id, client_secret) {
if (!client_id || !client_secret) {
throw new Error("Client Credentials authentication requires client_id and client_secret");
}
yield exec.exec("cf", ["auth", client_id, client_secret, "--client-credentials"], { silent: true });
yield exec.exec("cf", ["auth", client_id, client_secret, "--client-credentials"], { silent: false });
core.info(">>> Successfully authenticated using client credentials");
});
}
Expand All @@ -28448,7 +28448,7 @@ function handlePassword(username, password) {
throw new Error("Password authentication requires username and password");
}
yield exec.exec("cf", ["auth", username, password], {
silent: true,
silent: false,
});
core.info(">>> Successfully authenticated using password");
});
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"devDependencies": {
"@types/node": "^22.8.5",
"@vercel/ncc": "^0.38.2",
"prettier": "^3.3.3",
"typescript": "^5.6.3"
"prettier": "^3.4.2",
"typescript": "^5.7.2"
},
"engines": {
"node": ">=20.0.0 <21.0.0"
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function install_cf(version) {

async function setup_cf(api) {
try {
await exec.exec("cf", ["api", api], { silent: true });
await exec.exec("cf", ["api", api], { silent: false });
core.info(">>> Successfully set CF API endpoint");
} catch (error) {
throw new Error(
Expand Down Expand Up @@ -189,7 +189,7 @@ async function handleClientCredentials(client_id, client_secret) {
await exec.exec(
"cf",
["auth", client_id, client_secret, "--client-credentials"],
{ silent: true },
{ silent: false },
);
core.info(">>> Successfully authenticated using client credentials");
}
Expand All @@ -199,7 +199,7 @@ async function handlePassword(username, password) {
throw new Error("Password authentication requires username and password");
}
await exec.exec("cf", ["auth", username, password], {
silent: true,
silent: false,
});
core.info(">>> Successfully authenticated using password");
}
Expand Down

0 comments on commit 159e9c3

Please sign in to comment.