Skip to content

Feat Req: Add env-links alternative for windows #79

Description

@tanishqmanuja

something like this env-links.ps1

param()

Get-ChildItem -Path "apps" -Directory | ForEach-Object {
  $appDir = $_.FullName
  Write-Host "Creating symlink for $($_.Name)"
  $envPath = Join-Path -Path $appDir -ChildPath ".env"
  if (-not (Test-Path $envPath)) {
    New-Item -ItemType SymbolicLink -Path $envPath -Target "..\..\.env" -Force | Out-Null
  }
}

Write-Host "Symlinks created"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions