From fe336d27aefac8215db5b7fde327486f4b1799c6 Mon Sep 17 00:00:00 2001 From: BradyJ27 Date: Wed, 1 Nov 2023 07:54:51 -0400 Subject: [PATCH] Add aliases for common commands (#4926) * Add aliases for common commands * Add aliases to linked terms; Fix typos --- content/docs/command-reference/exp/list.md | 2 ++ content/docs/command-reference/exp/remove.md | 2 ++ content/docs/command-reference/move.md | 2 ++ content/docs/command-reference/remove.md | 2 ++ content/linked-terms.js | 16 ++++++++++++++++ 5 files changed, 24 insertions(+) diff --git a/content/docs/command-reference/exp/list.md b/content/docs/command-reference/exp/list.md index a0a7de40f9..cba6bd8192 100644 --- a/content/docs/command-reference/exp/list.md +++ b/content/docs/command-reference/exp/list.md @@ -1,5 +1,7 @@ # exp list +> Aliased to `dvc exp ls`. + List experiments in a DVC repository (remote or local). ## Synopsis diff --git a/content/docs/command-reference/exp/remove.md b/content/docs/command-reference/exp/remove.md index 0ab6956d7e..8bcee891ef 100644 --- a/content/docs/command-reference/exp/remove.md +++ b/content/docs/command-reference/exp/remove.md @@ -1,5 +1,7 @@ # exp remove +> Aliased to `dvc exp rm`. + Delete specific experiments from the project. ## Synopsis diff --git a/content/docs/command-reference/move.md b/content/docs/command-reference/move.md index 3541afc84a..3b5394f0aa 100644 --- a/content/docs/command-reference/move.md +++ b/content/docs/command-reference/move.md @@ -1,5 +1,7 @@ # move +> Aliased to `dvc mv`. + Rename a file or directory tracked with a `.dvc` file, and modify the `.dvc` file to reflect the change. The `.dvc` file is renamed if the file or directory has the same base name (typical). diff --git a/content/docs/command-reference/remove.md b/content/docs/command-reference/remove.md index 8d888e7b78..006a0a2f01 100644 --- a/content/docs/command-reference/remove.md +++ b/content/docs/command-reference/remove.md @@ -1,5 +1,7 @@ # remove +> Aliased to `dvc rm`. + Remove stages from `dvc.yaml` and/or stop tracking files or directories (and optionally delete them). diff --git a/content/linked-terms.js b/content/linked-terms.js index 140e564faa..134a7f4d01 100644 --- a/content/linked-terms.js +++ b/content/linked-terms.js @@ -30,5 +30,21 @@ module.exports = [ { matches: 'dvc ls', url: '/doc/command-reference/list' + }, + { + matches: 'dvc mv', + url: '/doc/command-reference/move' + }, + { + matches: 'dvc rm', + url: '/doc/command-reference/remove' + }, + { + matches: 'dvc exp ls', + url: '/doc/command-reference/exp/list' + }, + { + matches: 'dvc exp rm', + url: '/doc/command-reference/exp/remove' } ]