@astrojs/cli-kit
Advanced tools
Changelog
0.4.1
tie
option to the say
functionChangelog
0.4.0
fbec51e: Adds a new tasks
utility that displays a spinner for multiple, sequential tasks.
import { tasks } from "@astrojs/cli-kit";
const queue = [
{
pending: "Task 1",
start: "Task 1 initializing",
end: "Task 1 completed",
// async callback will be called and awaited sequentially
while: () => someAsyncAction(),
},
// etc
];
const labels = {
start: "Project initializing...",
end: "Project initialized!",
};
await tasks(labels, queue);
Changelog
0.3.1
Changelog
0.3.0
Changelog
0.2.5
say
Changelog
0.2.4
Changelog
0.2.3
Changelog
0.2.1
Changelog
0.2.0
stdout
hooks to all functions