Open Schniz opened 2 years ago
Something like:
dynamic command implementations will allow to lazily load the dependency tree instead of forcing cmd-ts apps to be imported sync
subcommands({ cmds: { hello: async () => (await import('./my-command')).cmd } })
async functions for the different commands can allow to lazily bootstrap the CLI
subcommands({ cmds: () => Promise.resolve({ hello: ... }) })
mixing them both can allow extremely dynamic applications 😮
Something like:
dynamic command implementations will allow to lazily load the dependency tree instead of forcing cmd-ts apps to be imported sync
async functions for the different commands can allow to lazily bootstrap the CLI
mixing them both can allow extremely dynamic applications 😮