MCPcopy
hub / github.com/remotion-dev/remotion / matchCommand

Function matchCommand

packages/lambda/src/cli/index.ts:49–174  ·  view source on GitHub ↗
({
	args,
	remotionRoot,
	logLevel,
	providerSpecifics,
	fullClientSpecifics,
}: {
	args: string[];
	remotionRoot: string;
	logLevel: LogLevel;
	providerSpecifics: ProviderSpecifics<AwsProvider>;
	fullClientSpecifics: FullClientSpecifics<AwsProvider>;
})

Source from the content-addressed store, hash-verified

47};
48
49const matchCommand = ({
50 args,
51 remotionRoot,
52 logLevel,
53 providerSpecifics,
54 fullClientSpecifics,
55}: {
56 args: string[];
57 remotionRoot: string;
58 logLevel: LogLevel;
59 providerSpecifics: ProviderSpecifics<AwsProvider>;
60 fullClientSpecifics: FullClientSpecifics<AwsProvider>;
61}) => {
62 if (parsedLambdaCli.help || args.length === 0) {
63 printHelp(logLevel);
64 quit(0);
65 }
66
67 if (requiresCredentials(args)) {
68 providerSpecifics.checkCredentials();
69 }
70
71 if (args[0] === RENDER_COMMAND) {
72 return renderCommand({
73 args: args.slice(1),
74 remotionRoot,
75 logLevel,
76 providerSpecifics,
77 });
78 }
79
80 if (args[0] === STILL_COMMAND) {
81 return stillCommand({
82 args: args.slice(1),
83 remotionRoot,
84 logLevel,
85 providerSpecifics: providerSpecifics,
86 });
87 }
88
89 if (args[0] === COMPOSITIONS_COMMAND) {
90 return compositionsCommand({
91 args: args.slice(1),
92 logLevel,
93 providerSpecifics,
94 });
95 }
96
97 if (args[0] === FUNCTIONS_COMMAND) {
98 return functionsCommand({
99 args: args.slice(1),
100 logLevel,
101 fullClientSpecifics,
102 providerSpecifics,
103 });
104 }
105
106 if (args[0] === QUOTAS_COMMAND) {

Callers 1

executeCommandFunction · 0.70

Calls 11

printHelpFunction · 0.90
quitFunction · 0.90
renderCommandFunction · 0.90
stillCommandFunction · 0.90
compositionsCommandFunction · 0.90
functionsCommandFunction · 0.90
quotasCommandFunction · 0.90
policiesCommandFunction · 0.90
regionsCommandFunction · 0.90
sitesCommandFunction · 0.90
requiresCredentialsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…