microsoft / microsoft/WSL

Add default version info flag/parameter for wsl command

Open
#5,985 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Background:
Currently you can configure the default wsl version with the wsl command.
But unless you know by heart what you did on your machine there is no possibility to know what version currently is the default.

Feature request:
I would like to have a flag/parameter I can provide to the wsl command that prints out the default version.

This is especially very helpful if you use automation, dotfiles, puppet, you-name-it to configure your workstation automatically.

Ps: I wasn't able to see if this was already requested because searching for version and flag or parameter just aren't the best search keywords 😅.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the wsl command's existing default-version configuration and command-line parsing; define a parameter that reports the configured default for automation, then add coverage for its output.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.