Skip to content

v0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Dec 21:14
· 7 commits to main since this release
c6add8f

Minor Changes

  • 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);