foy icon indicating copy to clipboard operation
foy copied to clipboard

[Question] Having trouble using foy

Open JUSTIVE opened this issue 1 week ago • 0 comments

Hi, I'm trying to use this library, but I'm having trouble with it. even with the basic example that Foy init gives, it does not work at all, which is

const { task, desc, option, fs } = require('foy')

  task('build', async ctx => {
    await ctx.exec('echo "hello world"')
  })

and does not print at all. tried changing command to something simple, also does not work at all. Am I missing something here?

for more information, I'm using node@20.

JUSTIVE avatar Jun 23 '24 09:06 JUSTIVE