Skip to content

Commit

Permalink
(cli) - better spinner message
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Apr 9, 2023
1 parent d1812b1 commit cde282a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/create-luna-app/src/commands/create-luna-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,16 @@ const command: GluegunCommand = {
const vanillaTemplate = `npx react-native init ${appName} --template @criszz77/luna@latest`
const tamaguiTemplate = `npx create-tamagui ${appName}`

const spinner = print.spin('Creating your app...')
const spinner = print.spin(
`Creating your ${(() => {
switch (selectedCLI) {
case CLIs.tamagui:
return 'Tamagui (@tamagui/create-tamagui)'
default:
return '🌘 Luna'
}
})()} app...`
)

const installTemplate = await system.run(
(() => {
Expand Down

0 comments on commit cde282a

Please sign in to comment.