Skip to content

API reference > @kontsedal/olas-codemod > main

main() function ​

The CLI. Returns the exit code: 0 when the run finished, TODOs or not; 1 for a usage error or a project with no source files.

Signature:

typescript
export declare function main(argv: readonly string[], io?: CliIO): number;

Parameters ​

Parameter

Type

Description

argv

readonly string[]

io

CliIO

(Optional)

Returns:

number

Released under the MIT License.