Skip to content

Commit

Permalink
Add waiting rainbow to theme profile command
Browse files Browse the repository at this point in the history
Co-authored-by: James Meng <35415298+jamesmengo@users.noreply.github.com>
  • Loading branch information
macournoyer and jamesmengo authored Jan 9, 2025
1 parent 1a56b88 commit d33d13e
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions packages/theme/src/cli/commands/theme/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,21 @@ export default class Profile extends ThemeCommand {
}
const theme = await findOrSelectTheme(adminSession, filter)

await profile(
adminSession,
theme.id.toString(),
flags.url,
flags.json,
themeAccessPassword,
flags['store-password'],
)
const tasks: Task[] = [
{
title: `Generating Liquid profile for ${store + flags.url}`,
task: async () => {
await profile(
adminSession,
theme.id.toString(),
flags.url,
flags.json,
themeAccessPassword,
flags['store-password'],
)
},
},
]
await renderTasksToStdErr(tasks)
}
}

0 comments on commit d33d13e

Please sign in to comment.