Skip to content

Commit

Permalink
Finish the rename of yarn ls to yarn list. (#377)
Browse files Browse the repository at this point in the history
- #356 did not create redirect
 - #334 duplicated some work already done in #333 also did not update
   all necessary files.
 - #277 had merge conflicts that went unaddressed.

Once this is merged, all of #277, #334 and #356 can be closed.
  • Loading branch information
markstos authored and bestander committed May 19, 2017
1 parent b40d9df commit 6fd484e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions _data/guides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
- id: docs_cli_logout
path: /docs/cli/logout
tags: ["cli-logout"]
- id: docs_cli_ls
path: /docs/cli/ls
tags: ["cli-ls"]
- id: docs_cli_list
path: /docs/cli/list
tags: ["cli-list"]
- id: docs_cli_outdated
path: /docs/cli/outdated
tags: ["cli-outdated"]
Expand Down
2 changes: 1 addition & 1 deletion _data/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ docs_cli_licenses: yarn licenses
docs_cli_link: yarn link
docs_cli_login: yarn login
docs_cli_logout: yarn logout
docs_cli_ls: yarn list
docs_cli_list: yarn list
docs_cli_outdated: yarn outdated
docs_cli_owner: yarn owner
docs_cli_pack: yarn pack
Expand Down
3 changes: 3 additions & 0 deletions _redirects
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ layout: null

# Without Language
{{redirectsBase | join: newline}}

# ls was renamed to list
/:language/docs/cli/ls /:language/docs/cli/list 301
2 changes: 1 addition & 1 deletion lang/en/docs/cli/global.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ Read more about the commands that can be used together with `yarn global`:

- [`yarn add`]({{url_base}}/docs/cli/add): add a package to use in your current package.
- [`yarn bin`]({{url_base}}/docs/cli/bin): displays the location of the yarn bin folder.
- [`yarn ls`]({{url_base}}/docs/cli/ls): list installed packages.
- [`yarn list`]({{url_base}}/docs/cli/list): list installed packages.
- [`yarn remove`]({{url_base}}/docs/cli/remove): remove a package that will no longer be used in your current package.
- [`yarn upgrade`]({{url_base}}/docs/cli/upgrade): upgrades packages to their latest version based on the specified range.
6 changes: 3 additions & 3 deletions lang/en/docs/cli/ls.md → lang/en/docs/cli/list.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
id: docs_cli_ls
id: docs_cli_list
guide: docs_cli
layout: guide
---

<p class="lead">List installed packages.</p>

##### `yarn list` <a class="toc" id="toc-yarn-ls" href="#toc-yarn-ls"></a>
##### `yarn list` <a class="toc" id="toc-yarn-list" href="#toc-yarn-list"></a>

```sh
yarn list
Expand All @@ -24,7 +24,7 @@ yarn list vx.x.x
└─ package-3@2.7.0
```

##### `yarn list [--depth]` <a class="toc" id="toc-yarn-ls-depth" href="#toc-yarn-ls-depth"></a>
##### `yarn list [--depth]` <a class="toc" id="toc-yarn-list-depth" href="#toc-yarn-list-depth"></a>

By default, all packages and their dependencies will be displayed. To restrict the depth of the
dependencies, you can add a flag, `--depth`, along with the desired level to the `list` command.
Expand Down

0 comments on commit 6fd484e

Please sign in to comment.