Create namespace prefix for inner tasks
namespace
namespace('client', ns => { task('run', async ctx => { logger.log(ns) // 'client' await ctx.exec('<run cmd>') })})namespace('server', ns => { task('run', async ctx => { logger.log(ns) // 'server' await ctx.exec('<run cmd>') })})==========$ yarn foy client:run$ yarn foy server:run Copy
namespace('client', ns => { task('run', async ctx => { logger.log(ns) // 'client' await ctx.exec('<run cmd>') })})namespace('server', ns => { task('run', async ctx => { logger.log(ns) // 'server' await ctx.exec('<run cmd>') })})==========$ yarn foy client:run$ yarn foy server:run
Create namespace prefix for inner tasks