Skip to content

Commit

Permalink
fix: update InitCommand.description (#3073)
Browse files Browse the repository at this point in the history
* Update InitCommand.description

* chore: run `npm run docs`

* chore: fix test snapshots

* chore: update initCommand.description

* Revert "chore: update initCommand.description"

This reverts commit a624045.

* chore: update initCommand.description - again

This reverts changes in commit a624045.

And updates initCommand.description, including `npm rund docs` changes.

* chore: update snapshots

Co-authored-by: ehmicky <ehmicky@gmail.com>
Co-authored-by: ehmicky <ehmicky@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
  • Loading branch information
5 people authored Sep 2, 2021
1 parent d6929ba commit 7f0fda6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Manage netlify functions

### [init](/docs/commands/init.md)

Configure continuous deployment for a new or existing site
Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`

### [link](/docs/commands/link.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Manage netlify functions

### [init](/docs/commands/init.md)

Configure continuous deployment for a new or existing site
Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`

### [link](/docs/commands/link.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Manage netlify functions

### [init](/docs/commands/init.md)

Configure continuous deployment for a new or existing site
Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`

### [link](/docs/commands/link.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/commands/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Initialize a new site locally
# `init`

<!-- AUTO-GENERATED-CONTENT:START (GENERATE_COMMANDS_DOCS) -->
Configure continuous deployment for a new or existing site
Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`

**Usage**

Expand Down
2 changes: 1 addition & 1 deletion src/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class InitCommand extends Command {
}
}

InitCommand.description = `Configure continuous deployment for a new or existing site`
InitCommand.description = `Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use \`netlify sites:create\``

InitCommand.flags = {
manual: flagsLib.boolean({
Expand Down
4 changes: 3 additions & 1 deletion tests/snapshots/command.help.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ Generated by [AVA](https://avajs.dev).
functions Manage netlify functions␊
help Display help. To display help for a specific command run \`netlify␊
help [command]\`␊
init Configure continuous deployment for a new or existing site␊
init Configure continuous deployment for a new or existing site. To␊
create a new site without continuous deployment, use \`netlify␊
sites:create\`␊
link Link a local repo or project folder to an existing site on Netlify␊
lm Handle Netlify Large Media operations␊
login Login to your Netlify account␊
Expand Down
Binary file modified tests/snapshots/command.help.test.js.snap
Binary file not shown.

1 comment on commit 7f0fda6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 329 MB

Please sign in to comment.