Skip to content

TS #32

Open
Open
TS#32
@nikitavoloboev

Description

@nikitavoloboev

Now

  • have better way to do parsing of args in scripts
  • mainWithError (below into 1 exportable function)
async function main() {
	try {
	} catch (error) {
		console.error(error)
	}
}

await main()
console.log("done")
// so it can be called like this in some script.ts
import {mainWithError} from "nikiv/utils"

await mainWithError() {
  throw new Error("some err")
}

// can this work with the `await main() in the nikiv/utils itself

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions