Skip to content

🎥 Make videos programmatically with React

fix indentation in cli

Jonny Burger9e464c72e644
diff --git a/packages/cli/src/benchmark.ts b/packages/cli/src/benchmark.ts
index 8ef7da63b5..570fee08e6 100644
--- a/packages/cli/src/benchmark.ts
+++ b/packages/cli/src/benchmark.ts
@@ -205,6 +205,7 @@ export const benchmarkCommand = async (
} = getCliOptions({
isStill: false,
logLevel,
+ indent: false,
});
Log.verbose(
diff --git a/packages/cli/src/browser/ensure.ts b/packages/cli/src/browser/ensure.ts
index b497dd3c6e..f9e374446a 100644
--- a/packages/cli/src/browser/ensure.ts
+++ b/packages/cli/src/browser/ensure.ts
@@ -8,13 +8,14 @@ import {quietFlagProvided} from '../parsed-cli';
export const ENSURE_COMMAND = 'ensure';
export const ensureCommand = async (logLevel: LogLevel) => {
+ const indent = false;
+
const {browserExecutable} = getCliOptions({
isStill: false,
logLevel,
+ indent,
});
- const indent = false;
-
const status = await ensureBrowser({
browserExecutable,
logLevel,
diff --git a/packages/cli/src/compositions.ts b/packages/cli/src/compositions.ts
index ade713015a..e85b3370cd 100644
--- a/packages/cli/src/compositions.ts
+++ b/packages/cli/src/compositions.ts
@@ -69,6 +69,7 @@ export const listCompositionsCommand = async (
} = getCliOptions({
isStill: false,
logLevel,
+ indent: false,
});
const chromiumOptions: ChromiumOptions = {
diff --git a/packages/cli/src/get-cli-options.ts b/packages/cli/src/get-cli-options.ts
index 0ee4a0a99b..2e37b98ea2 100644
--- a/packages/cli/src/get-cli-options.ts
+++ b/packages/cli/src/get-cli-options.ts
@@ -56,6 +56,7 @@ const getProResProfile = () => {
export const getCliOptions = (options: {
isStill: boolean;
logLevel: LogLevel;
+ indent: boolean;
}) => {
const frameRange = getAndValidateFrameRange(options.logLevel, false);
@@ -89,7 +90,11 @@ export const getCliOptions = (options: {
frameRange,
shouldOutputImageSequence,
inputProps: getInputProps(null, options.logLevel),
- envVariables: getEnvironmentVariables(null, options.logLevel, false),
+ envVariables: getEnvironmentVariables(
+ null,
+ options.logLevel,
+ options.indent,
+ ),
pixelFormat,
proResProfile,
everyNthFrame,
diff --git a/packages/cli/src/gpu.ts b/packages/cli/src/gpu.ts
index a654cadf55..5b9ba1d0e1 100644
--- a/packages/cli/src/gpu.ts
+++ b/packages/cli/src/gpu.ts
@@ -25,6 +25,7 @@ export const gpuCommand = async (logLevel: LogLevel) => {
} = getCliOptions({
isStill: false,
logLevel,
+ indent: false,
});
const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
diff --git a/packages/cli/src/render-queue/process-still.ts b/packages/cli/src/render-queue/process-still.ts
index 345223fad9..ef5944d2e5 100644
--- a/packages/cli/src/render-queue/process-still.ts
+++ b/packages/cli/src/render-queue/process-still.ts
@@ -28,6 +28,7 @@ export const processStill = async ({
const {browserExecutable} = getCliOptions({
isStill: true,
logLevel: job.logLevel,
+ indent: true,
});
const publicDir = publicDirOption.getValue({
diff --git a/packages/cli/src/render-queue/process-video.ts b/packages/cli/src/render-queue/process-video.ts
index a71e7331ee..8194e44d91 100644
--- a/packages/cli/src/render-queue/process-video.ts
+++ b/packages/cli/src/render-queue/process-video.ts
@@ -35,6 +35,7 @@ export const processVideoJob = async ({
const {browserExecutable, ffmpegOverride} = getCliOptions({
isStill: true,
logLevel,
+ indent: true,
});
const fullEntryPoint = convertEntryPointToServeUrl(entryPoint);
await renderVideoFlow({
diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsx
index e4f42a2c23..a5008b2a34 100644
--- a/packages/cli/src/render.tsx
+++ b/packages/cli/src/render.tsx
@@ -95,6 +95,7 @@ export const render = async (
} = getCliOptions({
isStill: false,
logLevel,
+ indent: false,
});
const x264Preset = x264Option.getValue({commandLine: parsedCli}).value;
diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.ts
index 88cc483b4a..1bfff89f8f 100644
--- a/packages/cli/src/still.ts
+++ b/packages/cli/src/still.ts
@@ -74,6 +74,7 @@ export const still = async (
} = getCliOptions({
isStill: true,
logLevel,
+ indent: false,
});
const jpegQuality = jpegQualityOption.getValue({
diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.ts
index 902ae7d6ac..a18db60021 100644
--- a/packages/cloudrun/src/cli/commands/render/index.ts
+++ b/packages/cloudrun/src/cli/commands/render/index.ts
@@ -85,6 +85,7 @@ export const renderCommand = async (
} = CliInternals.getCliOptions({
isStill: false,
logLevel,
+ indent: false,
});
const offthreadVideoCacheSizeInBytes =
diff --git a/packages/cloudrun/src/cli/commands/still.ts b/packages/cloudrun/src/cli/commands/still.ts
index 8348b5f0d3..2ea33b757e 100644
--- a/packages/cloudrun/src/cli/commands/still.ts
+++ b/packages/cloudrun/src/cli/commands/still.ts
@@ -52,6 +52,7 @@ export const stillCommand = async (
} = CliInternals.getCliOptions({
isStill: false,
logLevel,
+ indent: false,
});
let composition = args[1];
diff --git a/packages/lambda/src/cli/commands/compositions/index.ts b/packages/lambda/src/cli/commands/compositions/index.ts
index 45b84004dc..b785da36b1 100644
--- a/packages/lambda/src/cli/commands/compositions/index.ts
+++ b/packages/lambda/src/cli/commands/compositions/index.ts
@@ -48,6 +48,7 @@ export const compositionsCommand = async (
} = CliInternals.getCliOptions({
isStill: false,
logLevel,
+ indent: false,
});
const enableMultiProcessOnLinux = enableMultiprocessOnLinuxOption.getValue({
diff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.ts
index 96a567f15a..3b4bb98d87 100644
--- a/packages/lambda/src/cli/commands/render/render.ts
+++ b/packages/lambda/src/cli/commands/render/render.ts
@@ -101,6 +101,7 @@ export const renderCommand = async (
} = CliInternals.getCliOptions({
isStill: false,
logLevel,
+ indent: false,
});
const x264Preset = x264Option.getValue({
diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.ts
index 4feacd02fb..328e99cad1 100644
--- a/packages/lambda/src/cli/commands/still.ts
+++ b/packages/lambda/src/cli/commands/still.ts
@@ -77,6 +77,7 @@ export const stillCommand = async (
} = getCliOptions({
isStill: true,
logLevel,
+ indent: false,
});
const region = getAwsRegion();