Base safe-chain setupci implementation

This commit is contained in:
Sander Declerck 2025-09-18 17:44:42 +02:00
parent f7589160af
commit d1c0982942
No known key found for this signature in database
7 changed files with 195 additions and 4 deletions

View file

@ -4,6 +4,7 @@ import chalk from "chalk";
import { ui } from "../src/environment/userInteraction.js";
import { setup } from "../src/shell-integration/setup.js";
import { teardown } from "../src/shell-integration/teardown.js";
import { setupCi } from "../src/shell-integration/setup-ci.js";
if (process.argv.length < 3) {
ui.writeError("No command provided. Please provide a command to execute.");
@ -23,6 +24,8 @@ if (command === "setup") {
setup();
} else if (command === "teardown") {
teardown();
} else if (command === "setup-ci") {
setupCi();
} else {
ui.writeError(`Unknown command: ${command}.`);
ui.emptyLine();
@ -53,5 +56,10 @@ function writeHelp() {
"safe-chain teardown"
)}: This will remove safe-chain aliases from your shell configuration.`
);
ui.writeInformation(
`- ${chalk.cyan(
"safe-chain setup-ci"
)}: This will setup safe-chain for CI environments by creating shims and modifying the PATH.`
);
ui.emptyLine();
}