Skip to content

Commit

Permalink
Fix dev:exec command description (#6803)
Browse files Browse the repository at this point in the history
* fix: command description should not have line break

* fix: command description should not have line break

* fix: command description should not have line break

---------

Co-authored-by: Sean Roberts <[email protected]>
  • Loading branch information
sean-roberts and Sean Roberts authored Oct 17, 2024
1 parent f833f2d commit f8a4ac0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions docs/commands/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ netlify dev

| Subcommand | description |
|:--------------------------- |:-----|
| [`dev:exec`](/commands/dev#devexec) | Exec command |
| [`dev:exec`](/commands/dev#devexec) | Runs a command within the netlify dev environment. For example, with environment variables from any installed add-ons |


**Examples**
Expand All @@ -57,8 +57,7 @@ BROWSER=none netlify dev # disable browser auto opening
---
## `dev:exec`

Exec command
Runs a command within the netlify dev environment, e.g. with env variables from any installed addons
Runs a command within the netlify dev environment. For example, with environment variables from any installed add-ons

**Usage**

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Local dev server

| Subcommand | description |
|:--------------------------- |:-----|
| [`dev:exec`](/commands/dev#devexec) | Exec command |
| [`dev:exec`](/commands/dev#devexec) | Runs a command within the netlify dev environment. For example, with environment variables from any installed add-ons |


### [env](/commands/env)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/dev/dev-exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const createDevExecCommand = (program: BaseCommand) =>
'dev',
)
.description(
'Exec command\nRuns a command within the netlify dev environment, e.g. with env variables from any installed addons',
'Runs a command within the netlify dev environment. For example, with environment variables from any installed add-ons',
)
.allowExcessArguments(true)
.addExamples(['netlify dev:exec npm run bootstrap'])
Expand Down

0 comments on commit f8a4ac0

Please sign in to comment.