freestyle-sandboxes 0.1.32 → 0.1.34
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/cli.mjs +10 -2
- package/index.cjs +1300 -1458
- package/index.d.cts +1563 -2888
- package/index.d.mts +1563 -2888
- package/index.mjs +1300 -1458
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -547,7 +547,7 @@ async function getFreestyleClient(teamId) {
|
|
|
547
547
|
);
|
|
548
548
|
process.exit(1);
|
|
549
549
|
}
|
|
550
|
-
const resolvedTeamId = getDefaultTeamId();
|
|
550
|
+
const resolvedTeamId = process.env.FREESTYLE_TEAM_ID ?? getDefaultTeamId();
|
|
551
551
|
if (!resolvedTeamId) {
|
|
552
552
|
console.error(
|
|
553
553
|
"Error: No team selected. Please run 'freestyle login' to set a default team."
|
|
@@ -1912,4 +1912,12 @@ const logoutCommand = {
|
|
|
1912
1912
|
};
|
|
1913
1913
|
|
|
1914
1914
|
dotenv.config({ quiet: true });
|
|
1915
|
-
yargs(hideBin(process.argv)).scriptName("freestyle").usage("$0 <command> [options]").
|
|
1915
|
+
yargs(hideBin(process.argv)).scriptName("freestyle").usage("$0 <command> [options]").option("team", {
|
|
1916
|
+
type: "string",
|
|
1917
|
+
describe: "Override team ID for this command",
|
|
1918
|
+
global: true
|
|
1919
|
+
}).middleware((argv) => {
|
|
1920
|
+
if (argv.team && typeof argv.team === "string") {
|
|
1921
|
+
process.env.FREESTYLE_TEAM_ID = argv.team;
|
|
1922
|
+
}
|
|
1923
|
+
}).command(vmCommand).command(gitCommand).command(domainsCommand).command(cronCommand).command(loginCommand).command(logoutCommand).command(deployCommand).command(runCommand).demandCommand(1, "You need to specify a command").help().alias("help", "h").version().alias("version", "v").strict().parse();
|