Browse Source

Using PowerShell for CLI scripts on Windows

main
Cédric Belin 5 months ago
parent
commit
9c0ecd4da3
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      .gitattributes
  2. +0
    -3
      bin/open_cli.cmd
  3. +3
    -0
      bin/open_cli.ps1

+ 1
- 1
.gitattributes View File

@@ -1,12 +1,12 @@
* text=auto
.* text

*.cmd text
*.http text
*.json text
*.md text
*.neon text
*.php text diff=php
*.ps1 text
*.txt text
*.xml text
*.yaml text


+ 0
- 3
bin/open_cli.cmd View File

@@ -1,3 +0,0 @@
@echo off
set BASE_DIR=%~dp0
php "%BASE_DIR:~0,-1%\open_cli" %*

+ 3
- 0
bin/open_cli.ps1 View File

@@ -0,0 +1,3 @@
#!/usr/bin/env pwsh
$basedir = Split-Path $MyInvocation.MyCommand.Definition -Parent
& php "$basedir/open_cli" $args

Loading…
Cancel
Save