Skip to content

Commit

Permalink
Update template names for dart create (dart-lang#3851)
Browse files Browse the repository at this point in the history
* Update template names

* Fix one more file
  • Loading branch information
mit-mit authored Feb 23, 2022
1 parent 0965742 commit 90784be
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/_tutorials/libraries/shared-pkgs.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ $ dart create --help
```

You'll see a list of templates, including various web and server-side apps.
One of the templates is named **console-full**.
One of the templates is named **console**.

Use the `dart create` command to
generate a command-line app named `vector_victor`:

```terminal
$ dart create -t console-full vector_victor
$ dart create -t console vector_victor
$ cd vector_victor
```

Expand Down
4 changes: 2 additions & 2 deletions src/_tutorials/server/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ More information:
## 3. Create a small app

Use the [`dart create`](/tools/dart-create) command
and the `console-full` template to create a command-line app:
and the `console` template to create a command-line app:

```terminal
$ dart create -t console-full cli
$ dart create -t console cli
```

This command creates a small Dart app that has the following:
Expand Down
2 changes: 1 addition & 1 deletion src/null-safety/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ see the [migration guide][].
For example:

```terminal
$ dart create -t console-full my_cli
$ dart create -t console my_cli
$ cd my_cli
$ dart migrate --apply-changes
```
Expand Down
32 changes: 13 additions & 19 deletions src/tools/dart-create.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ The following table shows the templates you can use:
|------------------+------------------------------------------------------|
| Template | Description |
|------------------|------------------------------------------------------|
| `console-simple` | A simple command-line app (the default template). |
| `console-full` | A complete command-line app. |
| `package-simple` | A starting point for Dart libraries or apps. |
| `console` | A command-line application.. |
| `package` | A package containing shared Dart libraries. |
| `server-shelf` | A server built using [shelf][]. |
| `web-simple` | A web app built using core Dart libraries. |
| `web` | A web app built using core Dart libraries. |
{:.table .table-striped .nowrap}

[shelf]: {{site.pub-pkg}}/shelf
Expand Down Expand Up @@ -69,21 +68,16 @@ $ dart create --help
Create a new Dart project.
Usage: dart create [arguments] <directory>
-h, --help Print this usage information.
-t, --template The project template to use.
[console-simple (default), console-full, package-simple, server-shelf, web-simple]
--[no-]pub Whether to run 'pub get' after the project has been created.
(defaults to on)
--force Force project generation, even if the target directory already exists.
Run "dart help" to see global options.
Available templates:
console-simple: A simple command-line application. (default)
console-full: A command-line application sample.
package-simple: A starting point for Dart libraries or applications.
server-shelf: A server app using `package:shelf`
web-simple: A web app that uses only core Dart libraries.
-h, --help Print this usage information.
-t, --template The project template to use.
[console] (default) A command-line application.
[package] A package containing shared Dart libraries.
[server-shelf] A server app using `package:shelf`
[web] A web app that uses only core Dart libraries.
--[no-]pub Whether to run 'pub get' after the project has been created.
(defaults to on)
--force Force project generation, even if the target directory already exists.
```
{% endcomment %}
2 changes: 1 addition & 1 deletion src/tools/dart-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Here's how you might use the `dart` tool
to create, analyze, test, and run an app:

```terminal
$ dart create -t console-full my_app
$ dart create -t console my_app
$ cd my_app
$ dart analyze
$ dart test
Expand Down

0 comments on commit 90784be

Please sign in to comment.