Browse Source

Using PowerShell for CLI script on Windows

main
Cédric Belin 4 months ago
parent
commit
c055b39457
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,11 +1,11 @@
* text=auto
.* text

*.cmd text
*.dart text
*.http text
*.json text
*.md text
*.ps1 text
*.txt text
*.yaml text
*.yml text


+ 0
- 3
bin/open_cli.cmd View File

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

+ 3
- 0
bin/open_cli.ps1 View File

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

Loading…
Cancel
Save