Skip to main content

Function: cli()

cli(): Argv<Omit<{ }, "branch" | "config" | "environment" | "environments" | "project" | "region"> & InferredOptionTypes<{ branch: { coerce: (value) => any; require: false; type: "string"; }; config: { alias: "c"; describe: "Path to config file. You can create a config file and set all options there. Valid extensions: .js, .json, .ts, .yml, or .yaml."; require: false; type: "string"; }; environment: { alias: readonly ["e", "env"]; coerce: (value) => any; type: "string"; }; environments: { }; project: { coerce: (value) => any; require: false; type: "string"; }; region: { alias: "r"; default: "us-east-1"; describe: "AWS region."; type: "string"; }; }>>

Defined in: cli.ts:210

Transformed to method because finalConfig was failing the tests because as function we encapsulate the logic and it is not executed on the import.

Returns​

Argv<Omit<{ }, "branch" | "config" | "environment" | "environments" | "project" | "region"> & InferredOptionTypes<{ branch: { coerce: (value) => any; require: false; type: "string"; }; config: { alias: "c"; describe: "Path to config file. You can create a config file and set all options there. Valid extensions: .js, .json, .ts, .yml, or .yaml."; require: false; type: "string"; }; environment: { alias: readonly ["e", "env"]; coerce: (value) => any; type: "string"; }; environments: { }; project: { coerce: (value) => any; require: false; type: "string"; }; region: { alias: "r"; default: "us-east-1"; describe: "AWS region."; type: "string"; }; }>>