libs/help_metadata/move-pwsldistro_phwriter_metadata.json

{
  "version": "0.1.3",
  "examples": [
    "Move-PwslDistro -Name 'Ubuntu' -DefaultUser 'dev_user' -NewLocation 'D:\\WSL\\Ubuntu'",
    "Move-PwslDistro -Name 'Debian' -DefaultUser 'dev_user' -NewLocation 'E:\\VMs\\Debian' -TempLocation 'F:\\temp' -SetAsDefault"
  ],
  "indent": 1,
  "commandinfo": {
    "source": "https://gitlab.com/phellams/pwsl/-/blob/main/readme.md",
    "cmdlet": "Move-PwslDistro",
    "description": "Safely moves a WSL distro to a new drive/folder. Handles stop, export, unregister, import, and user restoration automatically.",
    "synopsis": "Move-PwslDistro [-Name <String>] [-DefaultUser <String>] [-NewLocation <String>] [-TempLocation <String>] [-SetAsDefault <switch>]"
  },
  "name": "pwsl",
  "padding": 1,
  "paramtable": [
    {
      "required": true,
      "name": "Name",
      "inline": false,
      "type": "string",
      "param": "Name",
      "description": "The name of the distribution to move."
    },
    {
      "required": false,
      "name": "DefaultUser",
      "inline": false,
      "type": "string",
      "param": "DefaultUser",
      "description": "The username to set as default after import (prevents logging in as root)."
    },
    {
      "required": true,
      "name": "NewLocation",
      "inline": false,
      "type": "string",
      "param": "NewLocation",
      "description": "The target directory where the new disk image will be stored."
    },
    {
      "required": false,
      "name": "Help",
      "inline": false,
      "type": "switch",
      "param": "Help",
      "description": "Displays this help manual."
    }
  ]
}