turned template into create cli
This commit is contained in:
17
debug.js
Executable file
17
debug.js
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import * as p from '@clack/prompts';
|
||||
|
||||
async function demoSpinner() {
|
||||
await p.tasks([
|
||||
{
|
||||
title: 'Running demo task',
|
||||
task: async () => {
|
||||
await new Promise((r) => setTimeout(r, 1500));
|
||||
return 'Demo completed!';
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
demoSpinner().catch(console.error);
|
||||
Reference in New Issue
Block a user