Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ginokent/vscodeenv

Install fixed version Visual Studio Code and fixed version extensions in idempotent.
https://github.com/ginokent/vscodeenv

bash visual-studio-code vscode

Last synced: 18 days ago
JSON representation

Install fixed version Visual Studio Code and fixed version extensions in idempotent.

Awesome Lists containing this project

README

        

# vscodeenv

Install fixed version Visual Studio Code and fixed version extensions in idempotent.

**As of 2021-03-10, only Darwin is supported.**

# Installing

```bash
wget https://raw.githubusercontent.com/ginokent/vscodeenv/HEAD/bin/vscodeenv-darwin --output-document=/usr/local/bin/vscodeenv && chmod -v +x /usr/local/bin/vscodeenv
```

# Usage

```console
$ vscodeenv

vscodeenv is a tool for helping to install specific version 'Visual Studio Code'

Usage:

vscodeenv [arguments]

The commands are:

freeze Generate version lock script

install Install specific version 'Visual Studio Code'

arguments

'Visual Studio Code' version
If not given, install latest version
options
-f, --fource
Fource install

kill Kill '/Applications/Visual Studio Code.app'

list List installable 'Visual Studio Code' versions

arguments
-1, --one-column
If you want to output a single column, add this option

self-update Update 'vscodeenv' itself

```

If you want to generate version lock script, run `vscodeenv freeze`.
( `vscodeenv freeze` is inspired by [`pip freeze`](https://pip.pypa.io/en/stable/reference/pip_freeze/) )

output example:

```
$ vscodeenv freeze
#!/bin/sh
# Code generated by vscodeenv freeze; This code is vscodeenv version lock script.
set -eu

# Visual Studio Code
vscodeenv install 1.54.1

# Extensions
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code' --install-extension [email protected] --force
```

Generate a version lock script and then install from it in another environment.

```console
1. Generate a version lock script
$ vscodeenv freeze > vscodeenv.lock.sh

2. Run vscodeenv.lock.sh as shell script (require vscodeenv)
$ sh vscodeenv.lock.sh
```