Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Friendlier output for newcomers #323

Merged
merged 4 commits into from
Jun 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class InitCommand extends Command {
if (siteId && siteData && get(siteData, 'build_settings.repo_url') && !flags.force) {
const repoUrl = get(siteData, 'build_settings.repo_url')
this.log()
this.log(`${chalk.yellow('Warning:')} It looks like this site has already been initialized.`)
this.log(`This site has been initialized`)
this.log()
this.log(`Site Name: ${chalk.cyan(siteData.name)}`)
this.log(`Site Url: ${chalk.cyan(siteData.ssl_url || siteData.url)}`)
Expand All @@ -57,7 +57,7 @@ class InitCommand extends Command {

if (repo.error) {
console.log()
console.log(`${chalk.redBright('No git remote found. (╯°□°)╯︵ ┻━┻')}`)
console.log(`${chalk.yellow('No git remote was found, would you like to set one up?')}`)
console.log(`
It is recommended that you initialize a site that has a remote repository in GitHub.

Expand Down Expand Up @@ -174,9 +174,9 @@ git remote add origin https://github.com/YourUserName/RepoName.git
const remoteBuildRepo = get(siteData, 'build_settings.repo_url')
if (remoteBuildRepo && !flags.force) {
this.log()
this.log(chalk.underline.bold(`Existing Repo detected`))
this.log(chalk.underline.bold(`Success`))
const siteName = get(siteData, 'name')
this.log(`This site "${siteName}" is already configured to automatically deploy via ${remoteBuildRepo}`)
this.log(`This site "${siteName}" is configured to automatically deploy via ${remoteBuildRepo}`)
// TODO add support for changing github repo in site:config command

if (flags.watch) {
Expand Down Expand Up @@ -218,7 +218,7 @@ git remote add origin https://github.com/YourUserName/RepoName.git

// Success Message
this.log()
this.log(chalk.greenBright.bold.underline(`Netlify CI/CD Configured!`))
this.log(chalk.greenBright.bold.underline(`Success! Netlify CI/CD Configured!`))
this.log()
this.log(`This site is now configured to automatically deploy from ${repo.provider} branches & pull requests`)
this.log()
Expand Down