Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS #32

Open
2 tasks
nikitavoloboev opened this issue Jul 9, 2024 — with Linear · 0 comments
Open
2 tasks

TS #32

nikitavoloboev opened this issue Jul 9, 2024 — with Linear · 0 comments

Comments

Copy link
Owner

nikitavoloboev commented Jul 9, 2024

Focus

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant