Browse Source

Add `list` alias for `ls` (#315)

remotes/origin/add-with-shims
Kasper 4 years ago committed by GitHub
parent
commit
47b5c1671c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      README.md
  2. 4
      src/cli.rs

4
README.md

@ -152,11 +152,11 @@ Activates `[VERSION]` as the current Node version. If no version provided, it wi @@ -152,11 +152,11 @@ Activates `[VERSION]` as the current Node version. If no version provided, it wi
Display currently activated Node version.
### `fnm ls`
### `fnm list`
Lists the installed Node versions.
### `fnm ls-remote`
### `fnm list-remote`
Lists the Node versions available to download remotely.

4
src/cli.rs

@ -6,11 +6,11 @@ use structopt::StructOpt; @@ -6,11 +6,11 @@ use structopt::StructOpt;
#[derive(StructOpt, Debug)]
pub enum SubCommand {
/// List all remote Node.js versions
#[structopt(name = "ls-remote")]
#[structopt(name = "list-remote", aliases = &["ls-remote"])]
LsRemote(commands::ls_remote::LsRemote),
/// List all locally installed Node.js versions
#[structopt(name = "ls")]
#[structopt(name = "list", aliases = &["ls"])]
LsLocal(commands::ls_local::LsLocal),
/// Install a new Node.js version

Loading…
Cancel
Save