Skip to content

A shell script to check the latest version of a vscode extension

License

Notifications You must be signed in to change notification settings

hmasdev/vscode-ext-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSCode Extension Version Checker

A shell script to check the latest version of a vscode extension. You can use this script to download the latest vsix file.

Requiremetns

  • bash
    • getopts
    • curl

How to Use

Setup

  1. Clone this repository to your favorite directory:

    git clone https://github.com/hmasdev/vscode-ext-version.git

    The following steps assume that you have cloned this repository into the current folder.

  2. Move to the directory created at the previous step:

    cd vscode-ext-version

Run

The usage of this script is as follows:

vscev - VSCode Extension Version Checker
Usage: vscev [option] [extensionID]
Options:
  -d  Download the extension
  -h  Show help

Get the latest version

./vscev.sh ${publisher}.${extensionName}

For example, suppose that you want to know the latest version of Github.copilot, run

./vscev.sh Github.copilot

Get the latest vsix

./vscev.sh -d ${publisher}.${extensionName}

For example, suppose that you want to download the latest vsix of Github.copilot, run

./vscev.sh -d Github.copilot

Note that the latest vsix is downloaded into the working directory.

Contribution

Setup(dev)

  1. Clone this repository to your favorite directory:

    git clone https://github.com/hmasdev/vscode-ext-version.git

    The following steps assume that you have cloned this repository into the current folder.

  2. Move to the directory created at the previous step:

    cd vscode-ext-version
  3. Install bats, which is a test framework for bash, if you have not installed it yet:

    git clone https://github.com/bats-core/bats-core.git
    ./bats-core/install.sh ./bats
    export PATH=./bats/bin/:$PATH

    You can run bats -v to see if bats has been successfully installed.

    See https://bats-core.readthedocs.io/en/stable/installation.html for detailed information.

Development

  1. Update vscev.sh;
  2. test vscev.sh with bats test_vscev.bats;
  3. commit the change, push it and created a pull-request.

LISENCE

MIT

Authors

About

A shell script to check the latest version of a vscode extension

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages