Skip to content

Commit

Permalink
Prettier CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymiller committed Sep 18, 2023
1 parent e92ce8c commit b6dbba3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/cli/bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ const repositoryUrl = 'https://github.com/timothymiller/t4-app'
let [projectFolder, ...commandLineArgs] = process.argv.slice(2)

// Parse command line arguments correctly even with no projectFolder specified
if(projectFolder && projectFolder.startsWith('--')){
if (projectFolder && projectFolder.startsWith('--')) {
commandLineArgs.push(projectFolder)
projectFolder = undefined
}
if(!projectFolder && commandLineArgs.length > 1){
commandLineArgs.every((arg)=>{
if(!arg.startsWith('--')){
if (!projectFolder && commandLineArgs.length > 1) {
commandLineArgs.every((arg) => {
if (!arg.startsWith('--')) {
projectFolder = arg
return false
}
return true
return true
})
}
const useTauri = commandLineArgs.includes('--tauri')
Expand Down Expand Up @@ -148,7 +148,7 @@ console.log(chalk.green.bold(logo))
console.log(chalk.magentaBright.bold('\n"Type-Safe, Full-Stack Starter Kit for React Native + Web"'))
console.log(chalk.magentaBright.bold(' ft. Tamagui + TypeScript + tRPC + Turborepo'))

if(repositoryBranch){
if (repositoryBranch) {
console.log(chalk.yellow.bold(`\n⚠ Cloning ${repositoryBranch.replace('-b', '').replace('--single-branch', '').trim()} branch.`))
}

Expand Down

0 comments on commit b6dbba3

Please sign in to comment.